humanName property

String get humanName

Gets a user-friendly name for a RoverStatus.

Implementation

String get humanName {
	switch (this) {
		case RoverStatus.DISCONNECTED: return "Disconnected";
		case RoverStatus.IDLE: return "Idle";
		case RoverStatus.MANUAL: return "Manual";
		case RoverStatus.AUTONOMOUS: return "Autonomous";
		case RoverStatus.POWER_OFF: return "Off";
      case RoverStatus.RESTART: return "Restart";
	}
	// Do not use default or else you'll lose exhaustiveness checking.
	throw ArgumentError("Unrecognized rover status: $this");
}