catchError property

ErrorBuilder<T> catchError
final

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.

Implementation

final ErrorBuilder<T> catchError