isRetryable property

bool get isRetryable

Whether this is a retryable error.

Implementation

bool get isRetryable {
  return code == 'network_error' ||
      code == 'timeout' ||
      (statusCode != null && statusCode! >= 500);
}