FlutterGoogleStreetView constructor
const
FlutterGoogleStreetView({
- Key? key,
- StreetViewCreatedCallback? onStreetViewCreated,
- CameraChangeListener? onCameraChangeListener,
- PanoramaChangeListener? onPanoramaChangeListener,
- PanoramaClickListener? onPanoramaClickListener,
- PanoramaLongClickListener? onPanoramaLongClickListener,
- CloseClickListener? onCloseClickListener,
- String? initPanoId,
- LatLng? initPos,
- double? initRadius,
- StreetViewSource? initSource,
- double? initFov,
- double? initBearing,
- double? initTilt,
- double? initZoom,
- bool? panningGesturesEnabled,
- bool streetNamesEnabled = true,
- bool? zoomGesturesEnabled,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - Set<
Marker> ? markers, - bool? addressControl,
- ControlPosition? addressControlOptions,
- bool? disableDefaultUI,
- bool? disableDoubleClickZoom = kIsWeb ? false : null,
- bool? enableCloseButton = kIsWeb ? false : null,
- bool? fullscreenControl,
- ControlPosition? fullscreenControlOptions,
- bool? linksControl,
- bool? motionTracking,
- bool? motionTrackingControl,
- ControlPosition? motionTrackingControlOptions,
- bool? scrollwheel = kIsWeb ? true : null,
- bool? panControl,
- ControlPosition? panControlOptions,
- bool? zoomControl,
- ControlPosition? zoomControlOptions,
- bool? visible,
Implementation
const FlutterGoogleStreetView({
Key? key,
this.onStreetViewCreated,
this.onCameraChangeListener,
this.onPanoramaChangeListener,
this.onPanoramaClickListener,
this.onPanoramaLongClickListener,
this.onCloseClickListener,
this.initPanoId,
this.initPos,
this.initRadius,
this.initSource,
this.initFov, //iOS only
this.initBearing,
this.initTilt,
this.initZoom,
this.panningGesturesEnabled, //Web not supported.
this.streetNamesEnabled = true,
this.userNavigationEnabled = true,
this.zoomGesturesEnabled, //Web not supported.
this.gestureRecognizers, //Web not supported.
this.markers, //iOS only
// Web only //
this.addressControl,
this.addressControlOptions,
this.disableDefaultUI,
this.disableDoubleClickZoom = kIsWeb ? false : null,
this.enableCloseButton = kIsWeb ? false : null,
this.fullscreenControl,
this.fullscreenControlOptions,
this.linksControl,
this.motionTracking,
this.motionTrackingControl,
this.motionTrackingControlOptions,
this.scrollwheel = kIsWeb ? true : null,
this.panControl,
this.panControlOptions,
this.zoomControl,
this.zoomControlOptions,
this.visible,
// Web only //
}) : assert((initPanoId != null) ^ (initPos != null)),
assert((initTilt != null && initTilt >= -90 && initTilt <= 90) ||
initTilt == null),
super(key: key);