onError method

  1. @protected
  2. @mustCallSuper
void onError(
  1. AsyncNotifier it,
  2. Object error,
  3. StackTrace stackTrace
)

Called whenever an error is thrown in any AsyncNotifier. The stackTrace argument may be StackTrace.empty if an error was received without a stack trace.

Implementation

@protected
@mustCallSuper
void onError(
  AsyncNotifier<dynamic> it,
  Object error,
  StackTrace stackTrace,
) {}