CameraPosition constructor
const
CameraPosition({})
Creates a CameraPosition object with map centered
to the target
with the given bearing
, tilt
and zoom
level.
By default, the camera centers on the geographical coordinates (0,0) with no tilt (0 degrees), camera zoomed out (3.0) and the bearing heading north (0 degrees).
Implementation
const CameraPosition(
{this.bearing = 0,
this.target = const LatLng(latitude: 0, longitude: 0),
this.tilt = 0,
this.zoom = 3.0})
: assert(0 <= bearing && bearing < 360,
'Bearing must be between 0 and 360 degrees.'),
assert(
0 <= tilt && tilt <= 90, 'Tilt must be between 0 and 90 degrees.');