isServerError property
bool
get
isServerError
Checks if the status code is in the 500-599 range, indicating a server error.
Implementation
bool get isServerError =>
statusCode != null && statusCode! >= 500 && statusCode! < 600;