EventListener<T extends Event> typedef Null safety

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

A handler function that is used to listen to events.

Implementation

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