CameraPosition constructor

const CameraPosition({
  1. double bearing = 0.0,
  2. required LatLng target,
  3. double tilt = 0.0,
  4. double zoom = 0.0,
})

Creates a immutable representation of the GoogleMap camera.

AssertionError is thrown if bearing, target, tilt, or zoom are null.

Implementation

const CameraPosition({
  this.bearing = 0.0,
  required this.target,
  this.tilt = 0.0,
  this.zoom = 0.0,
});