copyWith method

  1. @override
SpeedLimitWidgetTheme copyWith({
  1. double? widgetSize,
  2. SpeedometerTheme? speedometerTheme,
  3. SpeedLimitTheme? speedLimitTheme,
  4. CameraProgressTheme? cameraProgressTheme,
})
override

Implementation

@override
SpeedLimitWidgetTheme copyWith({
  double? widgetSize,
  SpeedometerTheme? speedometerTheme,
  SpeedLimitTheme? speedLimitTheme,
  CameraProgressTheme? cameraProgressTheme,
}) {
  return SpeedLimitWidgetTheme(
    size: widgetSize ?? size,
    speedometerTheme: speedometerTheme ?? this.speedometerTheme,
    speedLimitTheme: speedLimitTheme ?? this.speedLimitTheme,
    cameraProgressTheme: cameraProgressTheme ?? this.cameraProgressTheme,
  );
}