addEventListener method

  1. @override
void addEventListener(
  1. String eventType,
  2. EventHandler handler
)
override

Implementation

@override
void addEventListener(String eventType, EventHandler handler) {
  super.addEventListener(eventType, handler);
  switch (eventType) {
    case EVENT_SCROLL:
      // Fired at the Document or element when the viewport or element is scrolled, respectively.
      document.documentElement?.addEventListener(eventType, handler);
      break;
  }
}