copyWith method

MapStyle copyWith({
  1. String? backgroundColor,
  2. String? regionFill,
  3. String? regionStroke,
  4. String? strokeWidth,
  5. String? regionHoverFill,
  6. String? regionActiveFill,
  7. String? pinColor,
  8. String? pinHoverColor,
  9. String? pinActiveColor,
  10. double? pinSize,
  11. double? pinGlowIntensity,
  12. String? pinGlowColor,
  13. String? tooltipBackground,
  14. String? tooltipBorder,
  15. String? tooltipTextColor,
  16. 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,
  );
}