isSuccessful property
bool
get
isSuccessful
Check if the response was successful (status code 200-299)
Implementation
bool get isSuccessful {
if (statusCode == null) return false;
return statusCode! >= 200 && statusCode! < 300;
}