status property

String status

Worker status.

Implementation

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