add method

void add(
  1. VoidCallback listener
)

Adds a disposer callback to the current notification data.

Implementation

void add(VoidCallback listener) {
  _notifyData?.disposers.add(listener);
}