MFCameraPosition constructor

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

Creates a immutable representation of the Map4dMap camera.

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

Implementation

const MFCameraPosition({
  this.bearing = 0.0,
  required this.target,
  this.tilt = 0.0,
  this.zoom = 0.0,
})  : assert(bearing != null),
      assert(target != null),
      assert(tilt != null),
      assert(zoom != null);