copyWith method

  1. @override
SpeedometerTheme copyWith({
  1. double? size,
  2. double? iconSize,
  3. Color? surfaceColor,
  4. TextStyle? textStyle,
  5. List<BoxShadow>? shadows,
})
override

Implementation

@override
SpeedometerTheme copyWith({
  double? size,
  double? iconSize,
  Color? surfaceColor,
  TextStyle? textStyle,
  List<BoxShadow>? shadows,
}) {
  return SpeedometerTheme(
    surfaceColor: surfaceColor ?? this.surfaceColor,
    size: size ?? this.size,
    iconSize: iconSize ?? this.iconSize,
    textStyle: textStyle ?? this.textStyle,
    shadows: shadows ?? this.shadows,
  );
}