humanName property
The human-readable name of the task.
Implementation
String get humanName {
switch (this) {
case ScienceState.SCIENCE_STATE_UNDEFINED: return "Unknown";
case ScienceState.STOP_COLLECTING: return "Idle";
case ScienceState.COLLECT_DATA: return "Collecting data";
}
// Do not use default or else you'll lose exhaustiveness checking.
throw ArgumentError("Unrecognized task: $this");
}