EventListener<T extends Event> typedef

void EventListener (
  1. T event
)

A handler function that is used to listen to events.

Implementation

typedef EventListener<T extends Event> = void Function(T event);