Version: 9.0.7
Working with arguments
Sometimes you need to pass initial values to your StateNotifier
. In such cases, you can use the StateNotifierArgumentsProvider
class and call the setArguments
function to set argument values that will be retrieved in the creator callback of your provider.
Next, you can use the ref
parameter of your callback generator to access the arguments passed in the initState
method.