CameraViewportState class final

Manually sets camera to specified properties.

Inheritance

Constructors

CameraViewportState.new({Point? center, EdgeInsets? padding, Offset? anchor, double? zoom, double? bearing, double? pitch})
Creates a CameraViewportState with the specified camera properties.
const

Properties

anchor Offset?
Point in the map's coordinate system about which zoom and bearing should be applied. Mutually exclusive with center.
final
bearing double?
The bearing of the map, measured in degrees clockwise from true north.
final
center Point?
The geographic coordinate that will be rendered at the midpoint of the map.
final
hashCode int
The hash code for this object.
no setterinherited
padding EdgeInsets?
Add insets to the map, adjusting the visible region by shifting the camera's viewport.
final
pitch double?
Pitch toward the horizon measured in degrees, with 0 degrees resulting in a top-down view for a two-dimensional map.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoom double?
The zoom level of the map.
final

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