afterError method Null safety

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

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

The default implementation returns current as is.


AsyncSnapshot<T> afterError(AsyncSnapshot<T> current, Object error, StackTrace stackTrace) {
  return AsyncSnapshot<T>.withError(, error, stackTrace);