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
-
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.
-
newLatLngZoom(
LatLng latLng, double zoom) → CameraUpdate - Returns a camera update that moves the camera target to the specified geographical location and zoom level.
-
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.