You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is would be a really good feature to have. Instead of getting us to make a method to set values to their defaults, why not create a method that can be called from context just like when reading or watching, to reinstantiate the instance of the class used by ChangeNotifierProvider?
The classes we create have their own defaults set when it gets instantiated, so a method from the provider to reinstantiate it to 'reset' everything back would be very helpful and time saving.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I believe this is would be a really good feature to have. Instead of getting us to make a method to set values to their defaults, why not create a method that can be called from context just like when reading or watching, to reinstantiate the instance of the class used by ChangeNotifierProvider?
The classes we create have their own defaults set when it gets instantiated, so a method from the provider to reinstantiate it to 'reset' everything back would be very helpful and time saving.
Beta Was this translation helpful? Give feedback.
All reactions