addEventListener method Null safety

void addEventListener(
  1. dynamic eventName,
  2. void listener(
    1. dynamic event
    )
)

Adds an event listener for the specified event.

Implementation

external void addEventListener/*<TEvent extends PlayerEvent>*/(
    dynamic /*keyof Events*/ eventName,
    void Function(dynamic /*TEvent*/ event) listener);