copyWith method

GeoformState<U> copyWith({
  1. List<U>? markers,
  2. List<FastPolygon>? polygonsToDraw,
  3. List<CircleMarker>? circlesToDraw,
  4. AnimationController? animationController,
  5. bool? manual,
  6. TapPosition? tapPosition,
  7. String? regionName,
  8. bool? isDownloading,
  9. MapProvider? mapProvider,
  10. bool? isActionActivated,
  11. Position? userLocation,
  12. 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,
  );
}