isServerError property
bool
get
isServerError
Check if the response is a server error (status code 500-599)
Implementation
bool get isServerError {
if (statusCode == null) return false;
return statusCode! >= 500 && statusCode! < 600;
}