statusDisplay property
String
get
statusDisplay
Get the display status of this request group
Implementation
String get statusDisplay {
if (hasError) {
if (statusCode != null) return 'ERROR $statusCode';
return 'ERROR';
}
if (statusCode != null) {
if (statusCode! >= 200 && statusCode! < 300) return 'SUCCESS $statusCode';
if (statusCode! >= 400) return 'FAILED $statusCode';
return '$statusCode';
}
return 'PENDING';
}