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