Answers for "How to call a method on the State Notifier Provider"

0

How to call a method on the State Notifier Provider

/// To call a method 
context.read(providerVariable.notifier).methodToCall();

/// In our case to call the state notifier
context.read(jokesNotifierProvider.notifier).getJoke();
Posted by: Guest on August-13-2021

Code answers related to "How to call a method on the State Notifier Provider"

Code answers related to "Dart"

Browse Popular Code Answers by Language