Replies: 2 comments 1 reply
-
Yes you can. You can also declare mutable fields and change their value. A notifier is just a class. You can use it as you like. Just be aware of when a new instance is created and whether it may have an impact on the provided value. |
Beta Was this translation helpful? Give feedback.
-
I don't know about "safe", I am not familiar enough with flutter intrinsics. You could first try the recommended solutions, using hooks or a StatefulConsumer, and have a look at different ways to handle forms. |
Beta Was this translation helpful? Give feedback.
-
Sorry for my bad english.
As title, Can I declare immutable parameter on AsyncNotifier class?
Ex:
myParam
is immutable, no need rebuild when it changes, so I do not want declare it on State class.Beta Was this translation helpful? Give feedback.
All reactions