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;
}