ReactiveGoogleMap constructor

ReactiveGoogleMap({
  1. Key? key,
  2. required String id,
  3. bool showMarkerClusters = true,
  4. bool autoCenter = false,
  5. bool searchAsMove = false,
  6. List<Place> calculateMarkers(
    1. dynamic searchController
    )?,
  7. Marker buildMarker(
    1. Place place
    )?,
  8. Future<Marker> buildClusterMarker(
    1. Cluster<Place> cluster
    )?,
  9. List<KeysToSubscribe>? subscribeTo,
  10. bool? triggerQueryOnInit,
  11. bool? shouldListenForChanges,
  12. bool? destroyOnDispose,
  13. List<double> levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0],
  14. double extraPercent = 0.5,
  15. double? stopClusteringZoom,
  16. String? credentials,
  17. String? index,
  18. String? url,
  19. AppbaseSettings? appbaseConfig,
  20. TransformRequest? transformRequest,
  21. TransformResponse? transformResponse,
  22. Map<String, String>? headers,
  23. Map<String, dynamic>? react,
  24. String? queryFormat,
  25. dynamic dataField,
  26. String? categoryField,
  27. String? categoryValue,
  28. String? nestedField,
  29. int? from,
  30. int? size,
  31. SortType? sortBy,
  32. String? aggregationField,
  33. int? aggregationSize,
  34. Map? after,
  35. bool? includeNullValues,
  36. List<String>? includeFields,
  37. List<String>? excludeFields,
  38. dynamic fuzziness,
  39. bool? searchOperators,
  40. bool? highlight,
  41. dynamic highlightField,
  42. Map? customHighlight,
  43. int? interval,
  44. List<String>? aggregations,
  45. String? missingLabel,
  46. bool? showMissing,
  47. bool? enableSynonyms,
  48. String? selectAllLabel,
  49. bool? pagination,
  50. bool? queryString,
  51. Map defaultQuery(
    1. dynamic searchController
    )?,
  52. Map customQuery(
    1. dynamic searchController
    )?,
  53. Future beforeValueChange(
    1. dynamic value
    )?,
  54. void onValueChange(
    1. dynamic next, {
    2. dynamic prev,
    })?,
  55. void onResults(
    1. Results next, {
    2. Results prev,
    })?,
  56. void onAggregationData(
    1. Aggregations next, {
    2. Aggregations prev,
    })?,
  57. void onError(
    1. dynamic error
    )?,
  58. void onRequestStatusChange(
    1. String next, {
    2. String prev,
    })?,
  59. void onQueryChange(
    1. List<Map>? next, {
    2. List<Map>? prev,
    })?,
  60. bool? enablePopularSuggestions,
  61. int? maxPopularSuggestions,
  62. bool? showDistinctSuggestions,
  63. bool? preserveResults,
  64. bool clearOnQueryChange = false,
  65. dynamic value,
  66. List<Map>? results,
  67. String? distinctField,
  68. Map? distinctFieldConfig,
  69. Duration httpRequestTimeout = const Duration(seconds: 30),
  70. CompoundClauseType? compoundClause,
  71. required CameraPosition initialCameraPosition,
  72. MapType mapType = MapType.normal,
  73. bool compassEnabled = true,
  74. MapCreatedCallback? onMapCreated,
  75. bool mapToolbarEnabled = true,
  76. CameraTargetBounds cameraTargetBounds = CameraTargetBounds.unbounded,
  77. MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded,
  78. bool rotateGesturesEnabled = true,
  79. bool scrollGesturesEnabled = true,
  80. bool zoomControlsEnabled = true,
  81. bool zoomGesturesEnabled = true,
  82. bool liteModeEnabled = false,
  83. bool tiltGesturesEnabled = true,
  84. EdgeInsets padding = const EdgeInsets.all(0),
  85. bool myLocationEnabled = false,
  86. bool myLocationButtonEnabled = true,
  87. bool indoorViewEnabled = false,
  88. bool trafficEnabled = false,
  89. bool buildingsEnabled = true,
  90. Set<Polygon> polygons = const <Polygon>{},
  91. Set<Polyline> polylines = const <Polyline>{},
  92. Set<Circle> circles = const <Circle>{},
  93. VoidCallback? onCameraMoveStarted,
  94. Set<TileOverlay> tileOverlays = const <TileOverlay>{},
  95. CameraPositionCallback? onCameraMove,
  96. VoidCallback? onCameraIdle,
  97. ArgumentCallback<LatLng>? onTap,
  98. ArgumentCallback<LatLng>? onLongPress,
  99. Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<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);