failed property
bool
get
failed
Check if the response failed (4xx or 5xx status code).
Implementation
bool get failed => statusCode >= 400;
Check if the response failed (4xx or 5xx status code).
bool get failed => statusCode >= 400;