afterError method

  1. @override
AsyncSnapshot<T> afterError(
  1. AsyncSnapshot<T> current,
  2. Object error,
  3. StackTrace stackTrace
)
override

Returns an updated version of the current summary following an error with a stack trace.

The default implementation returns current as is.

Implementation

@override
AsyncSnapshot<T> afterError(AsyncSnapshot<T> current, Object error, StackTrace stackTrace) {
  return AsyncSnapshot<T>.withError(ConnectionState.active, error, stackTrace);
}