copyWith method

TiltSettings copyWith({
  1. double? lenOnDegreeMm,
  2. double? horizontalSwerveDeg,
  3. double? verticalSwerveDeg,
  4. double? thresholdMm,
  5. double? maxParallelsDeviationDeg,
})

Implementation

TiltSettings copyWith({
  double? lenOnDegreeMm,
  double? horizontalSwerveDeg,
  double? verticalSwerveDeg,
  double? thresholdMm,
  double? maxParallelsDeviationDeg
}) {
  return TiltSettings(
    lenOnDegreeMm: lenOnDegreeMm ?? this.lenOnDegreeMm,
    horizontalSwerveDeg: horizontalSwerveDeg ?? this.horizontalSwerveDeg,
    verticalSwerveDeg: verticalSwerveDeg ?? this.verticalSwerveDeg,
    thresholdMm: thresholdMm ?? this.thresholdMm,
    maxParallelsDeviationDeg: maxParallelsDeviationDeg ?? this.maxParallelsDeviationDeg
  );
}