catchError property

ErrorBuilder<T> catchError

An optional function used whenever the Stream emits an error.

catchError will be called with the emitted error and is expected to return a fallback value without throwing.

The returned value will then be exposed to the descendants of StreamProvider like any valid value.


final ErrorBuilder<T> catchError