Closed tbm98 closed 4 years ago
How can I remove listeners from StateNotifier ?
AddListener returns a function that you can call to remove the listener
final removeListener = stateNotifier.addListener((value) { }); removeListener();
Thanks!
How can I remove listeners from StateNotifier ?