copyWith method

MapBubbleSettings copyWith({
  1. double? minRadius,
  2. double? maxRadius,
  3. Color? color,
  4. double? strokeWidth,
  5. Color? strokeColor,
})

Creates a copy of this class but with the given fields replaced with the new values.

Implementation

MapBubbleSettings copyWith({
  double? minRadius,
  double? maxRadius,
  Color? color,
  double? strokeWidth,
  Color? strokeColor,
}) {
  return MapBubbleSettings(
    minRadius: minRadius ?? this.minRadius,
    maxRadius: maxRadius ?? this.maxRadius,
    color: color ?? this.color,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    strokeColor: strokeColor ?? this.strokeColor,
  );
}