MotorCommand constructor

MotorCommand({
  1. int? moveSteps,
  2. double? moveRadians,
  3. double? angle,
})

Implementation

factory MotorCommand({
  $core.int? moveSteps,
  $core.double? moveRadians,
  $core.double? angle,
}) {
  final $result = create();
  if (moveSteps != null) {
    $result.moveSteps = moveSteps;
  }
  if (moveRadians != null) {
    $result.moveRadians = moveRadians;
  }
  if (angle != null) {
    $result.angle = angle;
  }
  return $result;
}