humanName property
The human-readable name of the task.
Implementation
String get humanName {
switch (this) {
case AutonomyTask.AUTONOMY_TASK_UNDEFINED: return "No task";
case AutonomyTask.GPS_ONLY: return "GPS only";
case AutonomyTask.VISUAL_MARKER: return "Visual marker";
case AutonomyTask.BETWEEN_GATES: return "Between gates";
}
// Do not use default or else you'll lose exhaustiveness checking.
throw ArgumentError("Unrecognized task: $this");
}