addEventListener method Null safety

void addEventListener (
  1. String type,
  2. dynamic listener(
    1. Event event
    ),
  3. [bool? useCapture]
)
override

Implementation

void addEventListener(String type, dynamic listener(Event event)?,
    [bool? useCapture]);