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,
  $1.MotorData? base,
  $1.MotorData? shoulder,
  $1.MotorData? elbow,
  $2.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;
}