humanName property
Gets a user-friendly name for a CameraStatus.
Implementation
String get humanName {
switch(this) {
case CameraStatus.CAMERA_STATUS_UNDEFINED: return "";
case CameraStatus.CAMERA_DISCONNECTED: return "Disconnected";
case CameraStatus.CAMERA_ENABLED: return "Enabled";
case CameraStatus.CAMERA_DISABLED: return "Disabled";
case CameraStatus.CAMERA_NOT_RESPONDING: return "Not responding";
case CameraStatus.CAMERA_LOADING: return "Loading";
case CameraStatus.FRAME_TOO_LARGE: return "Frame too large";
case CameraStatus.CAMERA_HAS_NO_NAME: return "Camera has no name";
}
// Do not use default or else you'll lose exhaustiveness checking.
throw ArgumentError("Unrecognized rover status: $this");
}