Where is that variable state declared? where does it come from?, each time I use it in my code state is not defined and honestly cannot figure it out. Can you please enlighten me?
Hi @hackerunet 馃憢
Thanks for opening an issue!
state is a property on all blocs which gives you the current bloc state at the moment in time. What version of bloc are you using?
Hi @hackerunet 馃憢
state is a property declared on the bloc itself. You might be using an older version of the package where it was named currentState. I'd recommend you update your bloc and flutter_bloc packages to latest version which is 4.0.0.
Hope that helps you 馃憤
Oh my gosh, I'm using: flutter_bloc: ^2.0.1
Most helpful comment
Oh my gosh, I'm using: flutter_bloc: ^2.0.1