ReactiveGoogleMap constructor
ReactiveGoogleMap({
- Key? key,
- required String id,
- bool showMarkerClusters = true,
- bool autoCenter = false,
- bool searchAsMove = false,
- List<
Place> calculateMarkers(- dynamic searchController
- Marker buildMarker(
- Place place
- Future<
Marker> buildClusterMarker(- Cluster<
Place> cluster
- Cluster<
- List<
KeysToSubscribe> ? subscribeTo, - bool? triggerQueryOnInit,
- bool? shouldListenForChanges,
- bool? destroyOnDispose,
- List<
double> levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0], - double extraPercent = 0.5,
- double? stopClusteringZoom,
- String? credentials,
- String? index,
- String? url,
- AppbaseSettings? appbaseConfig,
- TransformRequest? transformRequest,
- TransformResponse? transformResponse,
- Map<
String, String> ? headers, - Map<
String, dynamic> ? react, - String? queryFormat,
- dynamic dataField,
- String? categoryField,
- String? categoryValue,
- String? nestedField,
- int? from,
- int? size,
- SortType? sortBy,
- String? aggregationField,
- int? aggregationSize,
- Map? after,
- bool? includeNullValues,
- List<
String> ? includeFields, - List<
String> ? excludeFields, - dynamic fuzziness,
- bool? searchOperators,
- bool? highlight,
- dynamic highlightField,
- Map? customHighlight,
- int? interval,
- List<
String> ? aggregations, - String? missingLabel,
- bool? showMissing,
- bool? enableSynonyms,
- String? selectAllLabel,
- bool? pagination,
- bool? queryString,
- Map defaultQuery(
- dynamic searchController
- Map customQuery(
- dynamic searchController
- Future beforeValueChange(
- dynamic value
- void onValueChange(
- dynamic next, {
- dynamic prev,
- void onResults(
- Results next, {
- Results prev,
- void onAggregationData(
- Aggregations next, {
- Aggregations prev,
- void onError(
- dynamic error
- void onRequestStatusChange(})?,
- void onQueryChange(})?,
- bool? enablePopularSuggestions,
- int? maxPopularSuggestions,
- bool? showDistinctSuggestions,
- bool? preserveResults,
- bool clearOnQueryChange = false,
- dynamic value,
- List<
Map> ? results, - String? distinctField,
- Map? distinctFieldConfig,
- Duration httpRequestTimeout = const Duration(seconds: 30),
- CompoundClauseType? compoundClause,
- required CameraPosition initialCameraPosition,
- MapType mapType = MapType.normal,
- bool compassEnabled = true,
- MapCreatedCallback? onMapCreated,
- bool mapToolbarEnabled = true,
- CameraTargetBounds cameraTargetBounds = CameraTargetBounds.unbounded,
- MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded,
- bool rotateGesturesEnabled = true,
- bool scrollGesturesEnabled = true,
- bool zoomControlsEnabled = true,
- bool zoomGesturesEnabled = true,
- bool liteModeEnabled = false,
- bool tiltGesturesEnabled = true,
- EdgeInsets padding = const EdgeInsets.all(0),
- bool myLocationEnabled = false,
- bool myLocationButtonEnabled = true,
- bool indoorViewEnabled = false,
- bool trafficEnabled = false,
- bool buildingsEnabled = true,
- Set<
Polygon> polygons = const <Polygon>{}, - Set<
Polyline> polylines = const <Polyline>{}, - Set<
Circle> circles = const <Circle>{}, - VoidCallback? onCameraMoveStarted,
- Set<
TileOverlay> tileOverlays = const <TileOverlay>{}, - CameraPositionCallback? onCameraMove,
- VoidCallback? onCameraIdle,
- ArgumentCallback<
LatLng> ? onTap, - ArgumentCallback<
LatLng> ? onLongPress, - Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},OneSequenceGestureRecognizer> >
Implementation
ReactiveGoogleMap({
Key? key,
required this.id,
this.showMarkerClusters = true,
this.autoCenter = false,
this.searchAsMove = false,
this.calculateMarkers,
this.buildMarker,
this.buildClusterMarker,
this.subscribeTo,
this.triggerQueryOnInit,
this.shouldListenForChanges,
this.destroyOnDispose,
this.levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0],
this.extraPercent = 0.5,
this.stopClusteringZoom,
// properties to configure search component
this.credentials,
this.index,
this.url,
this.appbaseConfig,
this.transformRequest,
this.transformResponse,
this.headers,
this.react,
this.queryFormat,
this.dataField,
this.categoryField,
this.categoryValue,
this.nestedField,
this.from,
this.size,
this.sortBy,
this.aggregationField,
this.aggregationSize,
this.after,
this.includeNullValues,
this.includeFields,
this.excludeFields,
this.fuzziness,
this.searchOperators,
this.highlight,
this.highlightField,
this.customHighlight,
this.interval,
this.aggregations,
this.missingLabel,
this.showMissing,
this.enableSynonyms,
this.selectAllLabel,
this.pagination,
this.queryString,
this.defaultQuery,
this.customQuery,
this.beforeValueChange,
this.onValueChange,
this.onResults,
this.onAggregationData,
this.onError,
this.onRequestStatusChange,
this.onQueryChange,
this.enablePopularSuggestions,
this.maxPopularSuggestions,
this.showDistinctSuggestions,
this.preserveResults,
this.clearOnQueryChange = false,
this.value,
this.results,
this.distinctField,
this.distinctFieldConfig,
this.httpRequestTimeout = const Duration(seconds: 30),
this.compoundClause,
// Google map props
required this.initialCameraPosition,
this.mapType = MapType.normal,
this.compassEnabled = true,
this.onMapCreated,
this.mapToolbarEnabled = true,
this.cameraTargetBounds = CameraTargetBounds.unbounded,
this.minMaxZoomPreference = MinMaxZoomPreference.unbounded,
this.rotateGesturesEnabled = true,
this.scrollGesturesEnabled = true,
this.zoomControlsEnabled = true,
this.zoomGesturesEnabled = true,
this.liteModeEnabled = false,
this.tiltGesturesEnabled = true,
/// If no padding is specified default padding will be 0.
this.padding = const EdgeInsets.all(0),
this.myLocationEnabled = false,
this.myLocationButtonEnabled = true,
this.indoorViewEnabled = false,
this.trafficEnabled = false,
this.buildingsEnabled = true,
this.polygons = const <Polygon>{},
this.polylines = const <Polyline>{},
this.circles = const <Circle>{},
this.onCameraMoveStarted,
this.tileOverlays = const <TileOverlay>{},
this.onCameraMove,
this.onCameraIdle,
this.onTap,
this.onLongPress,
this.gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
}) : super(key: key);