OnErrorHandler typedef Null safety

OnErrorHandler = Future Function(String error)

Implementation

typedef Future<dynamic> OnErrorHandler(String error);