afterError method

  1. @override
AsyncSnapshot<T> afterError (AsyncSnapshot<T> current, Object error)
override

Returns an updated version of the current summary following an error.

The default implementation returns current as is.

Implementation

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