StreetViewParameters constructor

const StreetViewParameters({
  1. required String key,
  2. required Coordinates? location,
  3. String? pano,
  4. Coordinates? center,
  5. int? zoom,
  6. MapType? mapType,
  7. String? language,
  8. String? region,
  9. int? heading,
  10. int? pitch,
  11. int? fov,
})

Implementation

const StreetViewParameters({
  required super.key,
  required this.location,
  this.pano,
  super.center,
  super.zoom,
  super.mapType,
  super.language,
  super.region,
  this.heading,
  this.pitch,
  this.fov,
})  : assert(location != null || pano != null,
          "Missing location or panoId parameters"),
      assert(
          heading == null ||
              (heading >= kMinHeading && heading <= kMaxHeading),
          "Heading must be between $kMinHeading and $kMaxHeading"),
      assert(pitch == null || (pitch >= kMinPitch && pitch <= kMaxPitch),
          "Pitch must be between $kMinPitch and $kMaxPitch"),
      assert(fov == null || (fov >= kMinFov && fov <= kMaxFov),
          "Fov must be between $kMinFov and $kMaxFov"),
      super(mode: MapMode.streetview);