ArmData constructor

ArmData({
  1. Coordinates? currentPosition,
  2. Coordinates? targetPosition,
  3. MotorData? base,
  4. MotorData? shoulder,
  5. MotorData? elbow,
  6. Version? version,
})

Implementation

factory ArmData({
  Coordinates? currentPosition,
  Coordinates? targetPosition,
  MotorData? base,
  MotorData? shoulder,
  MotorData? elbow,
  $0.Version? version,
}) {
  final $result = create();
  if (currentPosition != null) {
    $result.currentPosition = currentPosition;
  }
  if (targetPosition != null) {
    $result.targetPosition = targetPosition;
  }
  if (base != null) {
    $result.base = base;
  }
  if (shoulder != null) {
    $result.shoulder = shoulder;
  }
  if (elbow != null) {
    $result.elbow = elbow;
  }
  if (version != null) {
    $result.version = version;
  }
  return $result;
}