OnCancelHandler typedef Null safety

OnCancelHandler = Future Function()

Implementation

typedef Future<dynamic> OnCancelHandler();