remove method

void remove(
  1. String event,
  2. Function handler
)
inherited

This function attempts to unbind the handler from the event

@param String event - The event to remove the handler from @param Function handler - The handler to remove @return void

Implementation

void remove(String event, Function handler) {
  this._events[event]?.removeWhere((item) => item == handler);
  this._eventsOnce[event]?.removeWhere((item) => item == handler);
}