Skip to main content
Version: 3.x.x

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