offAny method

void offAny([
  1. AnyEventHandler? handler
])
inherited

This function attempts to unbind the handler. If the given handler is null, this function unbinds all any event handlers.

Implementation

void offAny([AnyEventHandler? handler]) {
  if (handler != null) {
    this._eventsAny.remove(handler);
  } else {
    this._eventsAny.clear();
  }
}