remove method

void remove (
  1. String eventName,
  2. NotificationCallback callback
)

Remove the named event's callback

Implementation

void remove(String eventName, NotificationCallback callback) {
  if (!_eventMap.containsKey(eventName))
    throw NotifyException('event name ("$eventName") not found', 'remove');

  _eventMap[eventName].remove(callback);
}