reportAdd method

  1. @protected
void reportAdd(
  1. VoidCallback disposer
)
inherited

Reports a disposer callback to the global notifier.

This is used to register cleanup callbacks that will be called when the notifier is disposed.

Implementation

@protected
void reportAdd(VoidCallback disposer) {
  Notifier.instance.add(disposer);
}