ArmCommand constructor

ArmCommand({
  1. bool? stop,
  2. bool? calibrate,
  3. MotorCommand? swivel,
  4. MotorCommand? shoulder,
  5. MotorCommand? elbow,
  6. MotorCommand? gripperLift,
  7. double? ikX,
  8. double? ikY,
  9. double? ikZ,
  10. bool? jab,
  11. Version? version,
})

Implementation

factory ArmCommand({
  $core.bool? stop,
  $core.bool? calibrate,
  $1.MotorCommand? swivel,
  $1.MotorCommand? shoulder,
  $1.MotorCommand? elbow,
  $1.MotorCommand? gripperLift,
  $core.double? ikX,
  $core.double? ikY,
  $core.double? ikZ,
  $core.bool? jab,
  $2.Version? version,
}) {
  final $result = create();
  if (stop != null) {
    $result.stop = stop;
  }
  if (calibrate != null) {
    $result.calibrate = calibrate;
  }
  if (swivel != null) {
    $result.swivel = swivel;
  }
  if (shoulder != null) {
    $result.shoulder = shoulder;
  }
  if (elbow != null) {
    $result.elbow = elbow;
  }
  if (gripperLift != null) {
    $result.gripperLift = gripperLift;
  }
  if (ikX != null) {
    $result.ikX = ikX;
  }
  if (ikY != null) {
    $result.ikY = ikY;
  }
  if (ikZ != null) {
    $result.ikZ = ikZ;
  }
  if (jab != null) {
    $result.jab = jab;
  }
  if (version != null) {
    $result.version = version;
  }
  return $result;
}