GripperCommand constructor

GripperCommand({
  1. bool? stop,
  2. bool? calibrate,
  3. MotorCommand? lift,
  4. MotorCommand? rotate,
  5. MotorCommand? pinch,
  6. bool? open,
  7. bool? close,
  8. bool? spin,
  9. Version? version,
  10. int? servoAngle,
  11. BoolState? laserState,
})

Implementation

factory GripperCommand({
  $core.bool? stop,
  $core.bool? calibrate,
  MotorCommand? lift,
  MotorCommand? rotate,
  MotorCommand? pinch,
  $core.bool? open,
  $core.bool? close,
  $core.bool? spin,
  $0.Version? version,
  $core.int? servoAngle,
  $1.BoolState? laserState,
}) {
  final $result = create();
  if (stop != null) {
    $result.stop = stop;
  }
  if (calibrate != null) {
    $result.calibrate = calibrate;
  }
  if (lift != null) {
    $result.lift = lift;
  }
  if (rotate != null) {
    $result.rotate = rotate;
  }
  if (pinch != null) {
    $result.pinch = pinch;
  }
  if (open != null) {
    $result.open = open;
  }
  if (close != null) {
    $result.close = close;
  }
  if (spin != null) {
    $result.spin = spin;
  }
  if (version != null) {
    $result.version = version;
  }
  if (servoAngle != null) {
    $result.servoAngle = servoAngle;
  }
  if (laserState != null) {
    $result.laserState = laserState;
  }
  return $result;
}