OnException typedef Null safety

OnException = void Function(dynamic exception)

Implementation

typedef OnException = void Function(dynamic exception);