isServerError property
bool
get
isServerError
Returns true if the status code indicates a server error (5xx).
Implementation
bool get isServerError => statusCode >= 500;
Returns true if the status code indicates a server error (5xx).
bool get isServerError => statusCode >= 500;