GoogleMapsController class

Implemented types
Mixed-in types

Constructors

GoogleMapsController({required EdgeInsets padding, required Size viewportSize})

Properties

controller → Future<GoogleMapController>
no setter
hashCode → int
The hash code for this object.
no setterinherited
mapController → Completer<GoogleMapController>
The completer holding the platform controller of the map currently attached.
no setter
moveSource → MapMoveSource
What to report for a camera event arriving now.
no setterinherited
padding → EdgeInsets
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settleWindow → Duration
The window beginProgrammaticMove arms. Override to shorten it — a map whose camera calls are never animated settles far sooner than this.
no setterinherited
viewportSize → Size
final

Methods

attach(GoogleMapController platformController) → void
Binds the GoogleMapController handed out by GoogleMap.onMapCreated.
beginProgrammaticMove() → void
Marks the camera events that the app's own camera update is about to produce, until the camera settles again.
inherited
dispose() → void
override
disposeMoveAttribution() → void
Drops the pending settle timeout. Call it from the controller's dispose.
inherited
fitBounds(List<LatLng> points) → void
Moves the camera to fit points.
override
getCenter() → Future<LatLng>
override
getCenterOrNull() → Future<LatLng?>
getCenter for callers that would rather handle a dead map than catch: null means there is no live map to read a camera from.
getViewportBounds() → Future<LatLngBounds>
override
getViewportBoundsOrNull() → Future<LatLngBounds?>
getViewportBounds for callers that would rather handle a dead map than catch: null means there is no live map to read bounds from.
moveCamera(LatLng location, double? zoom) → void
Moves the camera to location, keeping the current zoom when zoom is null.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCameraSettled() → void
Records that the camera came to rest.
inherited
setCamera(MapViewCamera camera, {Duration? duration}) → void
Puts the camera at camera: its centre, and also which way it faces and how far it leans.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited