copyWith method
Creates a copy of this object with the given fields replaced with new values.
Implementation
AreaOptions copyWith({
List<List<LatLng>>? holePointsList,
Color? color,
double? borderStrokeWidth,
Color? borderColor,
bool? disableHolesBorder,
bool? isDotted,
bool? isFilled,
StrokeCap? strokeCap,
StrokeJoin? strokeJoin,
String? label,
TextStyle? labelStyle,
PolygonLabelPlacement? labelPlacement,
bool? rotateLabel,
}) {
return AreaOptions(
holePointsList: holePointsList ?? this.holePointsList,
color: color ?? this.color,
borderStrokeWidth: borderStrokeWidth ?? this.borderStrokeWidth,
borderColor: borderColor ?? this.borderColor,
disableHolesBorder: disableHolesBorder ?? this.disableHolesBorder,
isDotted: isDotted ?? this.isDotted,
isFilled: isFilled ?? this.isFilled,
strokeCap: strokeCap ?? this.strokeCap,
strokeJoin: strokeJoin ?? this.strokeJoin,
label: label ?? this.label,
labelStyle: labelStyle ?? this.labelStyle,
labelPlacement: labelPlacement ?? this.labelPlacement,
rotateLabel: rotateLabel ?? this.rotateLabel,
);
}