afterError method Null safety
- AsyncSnapshot<
T> current, - Object error,
- 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);
}