registerDisposeListener method

void registerDisposeListener(
  1. void listener()
)

Register a listener to be called when the application is disposed.

Implementation

void registerDisposeListener(void Function() listener) {
  _disposeListeners.add(listener);
}