shouldAttemptRetryOnException method

FutureOr<bool> shouldAttemptRetryOnException(
  1. Exception reason,
  2. BaseRequest request
)

Defines whether the request should be retried when an Exception occurs while making said request to the server.

Implementation

FutureOr<bool> shouldAttemptRetryOnException(
        Exception reason, BaseRequest request) =>
    false;