string property
String
string
Implementation
String get string {
if (isDone()) {
if (wasSuccessful) {
return success;
} else if (wasCancelled) {
return cancelled;
} else if (wasFailure) {
return failure;
}
}
return loading;
}