StreetViewParameters constructor
const
StreetViewParameters({})
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);