Version: 7.2.0Listen when a provider has disposed a Notifierfinal counterProvider = SimpleProvider<CounterController>( (ref) { ref.onDispose(() { // YOUR CODE HERE }); return CounterController(); },);Copy