copyWith method
TrafficWidgetTheme
copyWith({
- Size? scoreStrokeSize,
- ColorRamp<
int> ? trafficColor, - double? borderWidth,
- Color? loaderColor,
- TextStyle? scoreTextStyle,
- NavigationMapControlTheme? controlTheme,
override
Implementation
@override
TrafficWidgetTheme copyWith({
Size? scoreStrokeSize,
ColorRamp<int>? trafficColor,
double? borderWidth,
Color? loaderColor,
TextStyle? scoreTextStyle,
NavigationMapControlTheme? controlTheme,
}) {
return TrafficWidgetTheme(
scoreStrokeSize: scoreStrokeSize ?? this.scoreStrokeSize,
trafficColor: trafficColor ?? this.trafficColor,
borderWidth: borderWidth ?? this.borderWidth,
loaderColor: loaderColor ?? this.loaderColor,
scoreTextStyle: scoreTextStyle ?? this.scoreTextStyle,
controlTheme: controlTheme ?? this.controlTheme,
);
}