GoogleMapsFlutterPlatform class

The interface that platform-specific implementations of google_maps_flutter must extend.

Avoid implements of this interface. Using implements makes adding any new methods here a breaking change for end users of your platform!

Do extends GoogleMapsFlutterPlatform instead, so new methods added here are inherited in your code with the default implementation (that throws at runtime), rather than breaking your users at compile time.



Constructs a GoogleMapsFlutterPlatform.


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


animateCamera(CameraUpdate cameraUpdate, {int mapId}) Future<void>
Starts an animated change of the map camera position. [...]
buildView(Map<String, dynamic> creationParams, Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers, PlatformViewCreatedCallback onPlatformViewCreated) Widget
Returns a widget displaying the map view
getLatLng(ScreenCoordinate screenCoordinate, {int mapId}) Future<LatLng>
Returns LatLng corresponding to the ScreenCoordinate in the current map view. [...]
getScreenCoordinate(LatLng latLng, {int mapId}) Future<ScreenCoordinate>
Return ScreenCoordinate of the LatLng in the current map view. [...]
getVisibleRegion({int mapId}) Future<LatLngBounds>
Return the region that is visible in a map.
getZoomLevel({int mapId}) Future<double>
Returns the current zoom level of the map
hideMarkerInfoWindow(MarkerId markerId, {int mapId}) Future<void>
Programmatically hide the Info Window for a Marker. [...]
init(int mapId) Future<void>
/// Initializes the platform interface with id. [...]
isMarkerInfoWindowShown(MarkerId markerId, {int mapId}) Future<bool>
Returns true when the InfoWindow is showing, false otherwise. [...]
moveCamera(CameraUpdate cameraUpdate, {int mapId}) Future<void>
Changes the map camera position. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
onCameraIdle({int mapId}) Stream<CameraIdleEvent>
The Camera is now idle.
onCameraMove({int mapId}) Stream<CameraMoveEvent>
The Camera finished moving to a new CameraPosition.
onCameraMoveStarted({int mapId}) Stream<CameraMoveStartedEvent>
The Camera started moving.
onCircleTap({int mapId}) Stream<CircleTapEvent>
A Circle has been tapped.
onInfoWindowTap({int mapId}) Stream<InfoWindowTapEvent>
An InfoWindow has been tapped.
onLongPress({int mapId}) Stream<MapLongPressEvent>
A Map has been long-pressed at a certain LatLng.
onMarkerDragEnd({int mapId}) Stream<MarkerDragEndEvent>
A Marker has been dragged to a different LatLng position.
onMarkerTap({int mapId}) Stream<MarkerTapEvent>
A Marker has been tapped.
onPolygonTap({int mapId}) Stream<PolygonTapEvent>
A Polygon has been tapped.
onPolylineTap({int mapId}) Stream<PolylineTapEvent>
A Polyline has been tapped.
onTap({int mapId}) Stream<MapTapEvent>
A Map has been tapped at a certain LatLng.
setMapStyle(String mapStyle, {int mapId}) Future<void>
Sets the styling of the base map. [...]
showMarkerInfoWindow(MarkerId markerId, {int mapId}) Future<void>
Programmatically show the Info Window for a Marker. [...]
takeSnapshot({int mapId}) Future<Uint8List>
Returns the image bytes of the map
toString() String
A string representation of this object. [...]
updateCircles(CircleUpdates circleUpdates, {int mapId}) Future<void>
Updates circle configuration. [...]
updateMapOptions(Map<String, dynamic> optionsUpdate, {int mapId}) Future<void>
Updates configuration options of the map user interface. [...]
updateMarkers(MarkerUpdates markerUpdates, {int mapId}) Future<void>
Updates marker configuration. [...]
updatePolygons(PolygonUpdates polygonUpdates, {int mapId}) Future<void>
Updates polygon configuration. [...]
updatePolylines(PolylineUpdates polylineUpdates, {int mapId}) Future<void>
Updates polyline configuration. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Properties

instance GoogleMapsFlutterPlatform
The default instance of GoogleMapsFlutterPlatform to use. [...]
read / write