fallback method

Stream<T> fallback(
  1. T fallbackValue
)

Transforms a stream with a fallback value in case of errors

Implementation

Stream<T> fallback(T fallbackValue) {
  return handleError((_) => fallbackValue).where((event) => event != null);
}