status property
Worker
status.
Implementation
String get status {
if (isStopped) {
return 'STOPPED';
} else if (_workload == 0) {
return 'IDLE';
} else {
return 'WORKING($_workload)';
}
}
Worker
status.
String get status {
if (isStopped) {
return 'STOPPED';
} else if (_workload == 0) {
return 'IDLE';
} else {
return 'WORKING($_workload)';
}
}