catchError method

FutureOr<T> catchError(
  1. Function onError, {
  2. bool test(
    1. Object error
    )?,
})

Implementation

FutureOr<T> catchError(Function onError,
    {bool Function(Object error)? test}) {
  final that = this;
  if (that is Future<T>) {
    return that.catchError(onError, test: test);
  }

  return that;
}