isSuccessCode property
bool
get
isSuccessCode
Checks if the status code represents a successful response (2xx)
Implementation
bool get isSuccessCode => this != null && this! >= 200 && this! < 300;
Checks if the status code represents a successful response (2xx)
bool get isSuccessCode => this != null && this! >= 200 && this! < 300;