copyWith method
MainManeuverTheme
copyWith({
- TextStyle? roadNameTextStyle,
- TextStyle? maneuverDistanceTextStyle,
- TextStyle? maneuverDistanceUnitTextStyle,
- double? maxWidth,
- double? minWidth,
- double? iconSize,
- double? borderRadius,
- Color? surfaceColor,
- List<
BoxShadow> ? shadows,
override
Implementation
@override
MainManeuverTheme copyWith({
TextStyle? roadNameTextStyle,
TextStyle? maneuverDistanceTextStyle,
TextStyle? maneuverDistanceUnitTextStyle,
double? maxWidth,
double? minWidth,
double? iconSize,
double? borderRadius,
Color? surfaceColor,
List<BoxShadow>? shadows,
}) {
return MainManeuverTheme(
roadNameTextStyle: roadNameTextStyle ?? this.roadNameTextStyle,
maneuverDistanceTextStyle:
maneuverDistanceTextStyle ?? this.maneuverDistanceTextStyle,
maneuverDistanceUnitTextStyle:
maneuverDistanceUnitTextStyle ?? this.maneuverDistanceUnitTextStyle,
maxWidth: maxWidth ?? this.maxWidth,
minWidth: minWidth ?? this.minWidth,
iconSize: iconSize ?? this.iconSize,
borderRadius: borderRadius ?? this.borderRadius,
surfaceColor: surfaceColor ?? this.surfaceColor,
shadows: shadows ?? this.shadows,
);
}