copyWith method

  1. @override
SpeedLimitTheme copyWith({
  1. double? size,
  2. double? borderWidth,
  3. Color? surfaceColor,
  4. TextStyle? textStyle,
  5. TextStyle? exceededTextStyle,
  6. Color? exceededSurfaceColor,
  7. List<BoxShadow>? exceededShadows,
})
override

Implementation

@override
SpeedLimitTheme copyWith({
  double? size,
  double? borderWidth,
  Color? surfaceColor,
  TextStyle? textStyle,
  TextStyle? exceededTextStyle,
  Color? exceededSurfaceColor,
  List<BoxShadow>? exceededShadows,
}) {
  return SpeedLimitTheme(
    size: size ?? this.size,
    textStyle: textStyle ?? this.textStyle,
    surfaceColor: surfaceColor ?? this.surfaceColor,
    borderWidth: borderWidth ?? this.borderWidth,
    exceededTextStyle: exceededTextStyle ?? this.exceededTextStyle,
    exceededSurfaceColor: exceededSurfaceColor ?? this.exceededSurfaceColor,
    exceededShadows: exceededShadows ?? this.exceededShadows,
  );
}