copyWith method

  1. @override
MainManeuverTheme copyWith({
  1. TextStyle? roadNameTextStyle,
  2. TextStyle? maneuverDistanceTextStyle,
  3. TextStyle? maneuverDistanceUnitTextStyle,
  4. double? maxWidth,
  5. double? minWidth,
  6. double? iconSize,
  7. double? borderRadius,
  8. Color? surfaceColor,
  9. 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,
  );
}