onClose method

  1. @mustCallSuper
void onClose()

Called when the reactive controller is being disposed.

This method is typically used to perform cleanup tasks such as disposing of subscriptions and freeing resources.

It is recommended to use this method to perform cleanup tasks before the reactive controller is no longer needed.

Implementation

@mustCallSuper
void onClose() {
  Logger.info('onClose of $runtimeType called', tag: 'ReactiveController');
}