DriveData({ - double? throttle,
- double? left,
- double? right,
- bool? setLeft,
- bool? setRight,
- bool? setThrottle,
- double? frontSwivel,
- double? frontTilt,
- double? rearSwivel,
- double? rearTilt,
- double? batteryVoltage,
- double? batteryCurrent,
- double? batteryTemperature,
- Version? version,
- double? backLeft,
- double? middleLeft,
- double? frontLeft,
- double? backRight,
- double? middleRight,
- double? frontRight,
- ProtoColor? color,
- RoverStatus? status,
})
Implementation
factory DriveData({
$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,
$core.double? batteryVoltage,
$core.double? batteryCurrent,
$core.double? batteryTemperature,
$0.Version? version,
$core.double? backLeft,
$core.double? middleLeft,
$core.double? frontLeft,
$core.double? backRight,
$core.double? middleRight,
$core.double? frontRight,
ProtoColor? color,
$3.RoverStatus? status,
}) {
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 (batteryVoltage != null) {
$result.batteryVoltage = batteryVoltage;
}
if (batteryCurrent != null) {
$result.batteryCurrent = batteryCurrent;
}
if (batteryTemperature != null) {
$result.batteryTemperature = batteryTemperature;
}
if (version != null) {
$result.version = version;
}
if (backLeft != null) {
$result.backLeft = backLeft;
}
if (middleLeft != null) {
$result.middleLeft = middleLeft;
}
if (frontLeft != null) {
$result.frontLeft = frontLeft;
}
if (backRight != null) {
$result.backRight = backRight;
}
if (middleRight != null) {
$result.middleRight = middleRight;
}
if (frontRight != null) {
$result.frontRight = frontRight;
}
if (color != null) {
$result.color = color;
}
if (status != null) {
$result.status = status;
}
return $result;
}