copyWith method

  1. @override
TrafficWidgetTheme copyWith({
  1. Size? scoreStrokeSize,
  2. ColorRamp<int>? trafficColor,
  3. double? borderWidth,
  4. Color? loaderColor,
  5. TextStyle? scoreTextStyle,
  6. 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,
  );
}