Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] about state in BLoC #2

Closed
jpiabrantes opened this issue Apr 23, 2020 · 1 comment
Closed

[Question] about state in BLoC #2

jpiabrantes opened this issue Apr 23, 2020 · 1 comment

Comments

@jpiabrantes
Copy link

I don't see where the variables state is declared in the code. How does this work?

@pedrohsampaioo
Copy link

State is a get provided by the "flutter_bloc" package. In the bloc classes, this is mentioned, in case you unravel the abstract class Bloc you will find it there. The State always has the function of saving the last state of the Bloc, see more at https://www.youtube.com/watch?v=hTExlt1nJZI&t=2387s !

I don't see where the variables state is declared in the code. How does this work?

state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants