GripperCommand constructor
GripperCommand({ - bool? stop,
- bool? calibrate,
- MotorCommand? lift,
- MotorCommand? rotate,
- MotorCommand? pinch,
- bool? open,
- bool? close,
- bool? spin,
- Version? version,
- int? servoAngle,
- 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;
}