onFailure method

Future<void> onFailure(
  1. Object error,
  2. StackTrace stackTrace
)

Called when handle throws an exception. Override for custom error handling.

Implementation

Future<void> onFailure(Object error, StackTrace stackTrace) async {}