shouldRetry method

  1. @override
FutureOr<bool> shouldRetry(
  1. Exception exception
)
override

Used to decide if the repository should retry after an error.

Implementation

@override
FutureOr<bool> shouldRetry(Exception exception) {
  return _shouldRetryCondition?.call(exception) ??
      super.shouldRetry(exception);
}