Skip to main content
Version: 7.2.0

Listen when a provider has disposed a Notifier

final counterProvider = SimpleProvider<CounterController>(
(ref) {
ref.onDispose(() {
// YOUR CODE HERE
});
return CounterController();
},
);
Last updated on by darwin-morocho