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