CameraPosition constructor

const CameraPosition({
  1. LatLng target = const LatLng(39.8994731, 116.4142794),
  2. double zoom = 10,
  3. double tilt = 0,
  4. double bearing = 360,
})

Implementation

const CameraPosition({
  this.target = const LatLng(39.8994731, 116.4142794),
  this.zoom = 10,
  this.tilt = 0,
  double bearing = 360,
}) : this.bearing = (bearing <= 0.0 ? bearing % 360.0 + 360.0 : bearing) % 360.0;