humanName property

String get humanName

The human-readable name of the direction

Implementation

String get humanName {
	switch (this) {
		case MotorDirection.MOTOR_DIRECTION_UNDEFINED: return "Unknown";
		case MotorDirection.UP: return "Up";
		case MotorDirection.DOWN: return "Down";
		case MotorDirection.LEFT: return "Left";
		case MotorDirection.RIGHT: return "Right";
		case MotorDirection.CLOCKWISE: return "Clockwise";
		case MotorDirection.COUNTER_CLOCKWISE: return "Counter clockwise";
		case MotorDirection.OPENING: return "Opening";
		case MotorDirection.CLOSING: return "Closing";
		case MotorDirection.NOT_MOVING: return "Not moving";
	}
	// Do not use default or else you'll lose exhaustiveness checking.
	throw ArgumentError("Unrecognized MotorDirection: $this");
}