CameraUpdate class Null safety

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

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() → dynamic
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

bearingTo(double bearing) CameraUpdate
Returns a camera update that sets the camera bearing.
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 left = 0, double top = 0, double right = 0, double bottom = 0}) 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 left, top, right and bottom 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.
tiltTo(double tilt) CameraUpdate
Returns a camera update that sets the camera bearing.
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.