hasError property

bool get hasError

Implementation

bool get hasError {
  if (isPending) return false;
  if (dioError != null) return true;
  final code = statusCodeValue;
  if (code == null) return true;
  return code >= 400;
}