DriveData constructor

DriveData({
  1. double? throttle,
  2. double? left,
  3. double? right,
  4. bool? setLeft,
  5. bool? setRight,
  6. bool? setThrottle,
  7. double? frontSwivel,
  8. double? frontTilt,
  9. double? rearSwivel,
  10. double? rearTilt,
  11. double? batteryVoltage,
  12. double? batteryCurrent,
  13. double? batteryTemperature,
  14. Version? version,
  15. double? backLeft,
  16. double? middleLeft,
  17. double? frontLeft,
  18. double? backRight,
  19. double? middleRight,
  20. double? frontRight,
  21. ProtoColor? color,
  22. 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;
}