remove method

void remove(
  1. EventTypes type,
  2. OnEventCallback callback
)

Remove a listener on an event type

If you register a listener in a _ViewState you must remove it in the dispose()

Implementation

void remove(EventTypes type, OnEventCallback callback) {
  if (listeners.containsKey(type) && listeners[type]!.contains(callback)) {
    listeners[type]!.remove(callback);
  }
}