Skip to content

keepAlive: true causes the value provided to be nullable #3834

Closed Answered by AhmedLSayed9
BenjiFarquhar asked this question in Q&A

You must be logged in to vote

It can't be ThemeMode? as your state is ThemeMode. Maybe you're using stale generated code and need to re-run build runner.
Also, You should use ref.watch at build method.

Replies: 2 comments 1 reply

You must be logged in to vote
0 replies
Answer selected by BenjiFarquhar

You must be logged in to vote
1 reply
@AhmedLSayed9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants