GripperData constructor

GripperData({
  1. MotorData? lift,
  2. MotorData? rotate,
  3. MotorData? pinch,
  4. Version? version,
  5. int? servoAngle,
  6. BoolState? laserState,
})

Implementation

factory GripperData({
  MotorData? lift,
  MotorData? rotate,
  MotorData? pinch,
  $0.Version? version,
  $core.int? servoAngle,
  $1.BoolState? laserState,
}) {
  final $result = create();
  if (lift != null) {
    $result.lift = lift;
  }
  if (rotate != null) {
    $result.rotate = rotate;
  }
  if (pinch != null) {
    $result.pinch = pinch;
  }
  if (version != null) {
    $result.version = version;
  }
  if (servoAngle != null) {
    $result.servoAngle = servoAngle;
  }
  if (laserState != null) {
    $result.laserState = laserState;
  }
  return $result;
}