remove method
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);
}