GripperData constructor

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

Implementation

factory GripperData({
  $1.MotorData? lift,
  $1.MotorData? rotate,
  $1.MotorData? pinch,
  $2.Version? version,
  $core.int? servoAngle,
  $0.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;
}