copyWith method
MapStyle
copyWith({
- String? backgroundColor,
- String? regionFill,
- String? regionStroke,
- String? strokeWidth,
- String? regionHoverFill,
- String? regionActiveFill,
- String? pinColor,
- String? pinHoverColor,
- String? pinActiveColor,
- double? pinSize,
- double? pinGlowIntensity,
- String? pinGlowColor,
- String? tooltipBackground,
- String? tooltipBorder,
- String? tooltipTextColor,
- String? tooltipSecondaryColor,
Implementation
MapStyle copyWith({
String? backgroundColor,
String? regionFill,
String? regionStroke,
String? strokeWidth,
String? regionHoverFill,
String? regionActiveFill,
String? pinColor,
String? pinHoverColor,
String? pinActiveColor,
double? pinSize,
double? pinGlowIntensity,
String? pinGlowColor,
String? tooltipBackground,
String? tooltipBorder,
String? tooltipTextColor,
String? tooltipSecondaryColor,
}) {
return MapStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
regionFill: regionFill ?? this.regionFill,
regionStroke: regionStroke ?? this.regionStroke,
strokeWidth: strokeWidth ?? this.strokeWidth,
regionHoverFill: regionHoverFill ?? this.regionHoverFill,
regionActiveFill: regionActiveFill ?? this.regionActiveFill,
pinColor: pinColor ?? this.pinColor,
pinHoverColor: pinHoverColor ?? this.pinHoverColor,
pinActiveColor: pinActiveColor ?? this.pinActiveColor,
pinSize: pinSize ?? this.pinSize,
pinGlowIntensity: pinGlowIntensity ?? this.pinGlowIntensity,
pinGlowColor: pinGlowColor ?? this.pinGlowColor,
tooltipBackground: tooltipBackground ?? this.tooltipBackground,
tooltipBorder: tooltipBorder ?? this.tooltipBorder,
tooltipTextColor: tooltipTextColor ?? this.tooltipTextColor,
tooltipSecondaryColor: tooltipSecondaryColor ?? this.tooltipSecondaryColor,
);
}