📜  如何在 State Notifier Provider 上调用方法 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:08.390000             🧑  作者: Mango

代码示例1
/// To call a method 
context.read(providerVariable.notifier).methodToCall();

/// In our case to call the state notifier
context.read(jokesNotifierProvider.notifier).getJoke();