DriveCommand({ - double? throttle,
- double? left,
- double? right,
- bool? setLeft,
- bool? setRight,
- bool? setThrottle,
- double? frontSwivel,
- double? frontTilt,
- double? rearSwivel,
- double? rearTilt,
- RoverStatus? status,
- Version? version,
- ProtoColor? color,
- BoolState? blink,
})
Implementation
factory DriveCommand({
$core.double? throttle,
$core.double? left,
$core.double? right,
$core.bool? setLeft,
$core.bool? setRight,
$core.bool? setThrottle,
$core.double? frontSwivel,
$core.double? frontTilt,
$core.double? rearSwivel,
$core.double? rearTilt,
$4.RoverStatus? status,
$2.Version? version,
ProtoColor? color,
$0.BoolState? blink,
}) {
final $result = create();
if (throttle != null) {
$result.throttle = throttle;
}
if (left != null) {
$result.left = left;
}
if (right != null) {
$result.right = right;
}
if (setLeft != null) {
$result.setLeft = setLeft;
}
if (setRight != null) {
$result.setRight = setRight;
}
if (setThrottle != null) {
$result.setThrottle = setThrottle;
}
if (frontSwivel != null) {
$result.frontSwivel = frontSwivel;
}
if (frontTilt != null) {
$result.frontTilt = frontTilt;
}
if (rearSwivel != null) {
$result.rearSwivel = rearSwivel;
}
if (rearTilt != null) {
$result.rearTilt = rearTilt;
}
if (status != null) {
$result.status = status;
}
if (version != null) {
$result.version = version;
}
if (color != null) {
$result.color = color;
}
if (blink != null) {
$result.blink = blink;
}
return $result;
}