isRetryableError property
bool
get
isRetryableError
Checks if the request should be retried based on the status code
Implementation
bool get isRetryableError =>
this == 408 || // Request Timeout
this == 429 || // Too Many Requests
this == 503 || // Service Unavailable
this == 504;