addEventListener method

  1. @override
void addEventListener(
  1. String eventType,
  2. EventHandler handler, {
  3. EventListenerOptions? addEventListenerOptions,
})
override

Implementation

@override
void addEventListener(String eventType, EventHandler handler, {EventListenerOptions? addEventListenerOptions}) {
  super.addEventListener(eventType, handler, addEventListenerOptions: addEventListenerOptions);
  RenderBoxModel? renderBox = renderBoxModel;
  if (renderBox != null) {
    ensureEventResponderBound();
  }
}