isTransient property
bool
get
isTransient
4xx is transient and worth retrying; 5xx is permanent.
Implementation
bool get isTransient => code != null && code! >= 400 && code! < 500;
4xx is transient and worth retrying; 5xx is permanent.
bool get isTransient => code != null && code! >= 400 && code! < 500;