addListener method

  1. @override
void addListener(
  1. int key,
  2. NotifyInfo notifyInfo
)

Register a closure to be called when the object notifies its listeners.

Implementation

@override
void addListener(int key, NotifyInfo notifyInfo) {
  _listeners[key] = notifyInfo;
}