OnFailure typedef Null safety

OnFailure = void Function(Response response, dynamic exception)

Implementation

typedef OnFailure = void Function(Response response, dynamic exception);