CameraUpdate class

Defines a camera move, supporting absolute moves as well as moves relative the current position.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
Converts this object to something serializable in JSON.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

newCameraPosition(CameraPosition cameraPosition) CameraUpdate
Returns a camera update that moves the camera to the specified position.
newLatLng(LatLng latLng) CameraUpdate
Returns a camera update that moves the camera target to the specified geographical location.
newLatLngBounds(LatLngBounds bounds, double padding) CameraUpdate
Returns a camera update that transforms the camera so that the specified geographical bounding box is centered in the map view at the greatest possible zoom level. A non-zero padding insets the bounding box from the map view's edges. The camera's new tilt and bearing will both be 0.0.
newLatLngZoom(LatLng latLng, double zoom) CameraUpdate
Returns a camera update that moves the camera target to the specified geographical location and zoom level.
scrollBy(double dx, double dy) CameraUpdate
Returns a camera update that moves the camera target the specified screen distance.
zoomBy(double amount, [Offset? focus]) CameraUpdate
Returns a camera update that modifies the camera zoom level by the specified amount. The optional focus is a screen point whose underlying geographical location should be invariant, if possible, by the movement.
zoomIn() CameraUpdate
Returns a camera update that zooms the camera in, bringing the camera closer to the surface of the Earth.
zoomOut() CameraUpdate
Returns a camera update that zooms the camera out, bringing the camera further away from the surface of the Earth.
zoomTo(double zoom) CameraUpdate
Returns a camera update that sets the camera zoom level.