CancelEvent typedef Null safety

CancelEvent = void Function()

Handler for cancelling the event registration.

Implementation

typedef CancelEvent = void Function();