shouldAttemptRetryOnException method
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;