registerDisposeListener method
void
registerDisposeListener(
- void listener()
Register a listener to be called when the application is disposed.
Implementation
void registerDisposeListener(void Function() listener) {
_disposeListeners.add(listener);
}