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