copyWith method
- MarkerProperties? markerProperties,
- PolylineProperties<
T> ? polylineProperties, - PolygonProperties<
T> ? polygonProperties,
Creates a new FeatureCollectionProperties instance with updated properties.
This method returns a new FeatureCollectionProperties instance with the provided properties while keeping the existing properties unchanged.
markerProperties: The properties for customizing markers.polylineProperties: The properties for customizing polylines.polygonProperties: The properties for customizing polygons.
Returns a new FeatureCollectionProperties instance with updated properties.
Implementation
FeatureCollectionProperties<T> copyWith({
MarkerProperties? markerProperties,
PolylineProperties<T>? polylineProperties,
PolygonProperties<T>? polygonProperties,
}) {
return FeatureCollectionProperties<T>(
markerProperties: markerProperties ?? this.markerProperties,
polylineProperts: polylineProperties ?? this.polylineProperties,
polygonProperts: polygonProperties ?? this.polygonProperties,
);
}