removeEventListener static method

void removeEventListener(
  1. Function callback
)

Remove event listener

Implementation

static void removeEventListener(Function callback) {
  _listeners.forEach((eventName, events) {
    int index = events.indexOf(callback);

    if (index != -1) {
      events.removeAt(index);
    }
  });
}