copyWith method
GeoformState<U>
copyWith({
- List<
U> ? markers, - List<
FastPolygon> ? polygonsToDraw, - List<
CircleMarker> ? circlesToDraw, - AnimationController? animationController,
- bool? manual,
- TapPosition? tapPosition,
- String? regionName,
- bool? isDownloading,
- MapProvider? mapProvider,
- bool? isActionActivated,
- Position? userLocation,
- LatLng? mapPosition,
Implementation
GeoformState<U> copyWith({
List<U>? markers,
List<FastPolygon>? polygonsToDraw,
List<CircleMarker>? circlesToDraw,
AnimationController? animationController,
bool? manual,
TapPosition? tapPosition,
String? regionName,
bool? isDownloading,
MapProvider? mapProvider,
bool? isActionActivated,
Position? userLocation,
LatLng? mapPosition,
}) {
return GeoformState._(
markers: markers ?? this.markers,
polygonsToDraw: polygonsToDraw ?? this.polygonsToDraw,
circlesToDraw: circlesToDraw ?? this.circlesToDraw,
manual: manual ?? this.manual,
tapPosition: tapPosition ?? this.tapPosition,
regionName: regionName ?? this.regionName,
isDownloading: isDownloading ?? this.isDownloading,
mapProvider: mapProvider ?? this.mapProvider,
isActionActivated: isActionActivated ?? this.isActionActivated,
userLocation: userLocation ?? this.userLocation,
mapPosition: mapPosition ?? this.mapPosition,
selectedMarker: selectedMarker,
);
}