FlutterGoogleStreetView constructor

const FlutterGoogleStreetView({
  1. Key? key,
  2. StreetViewCreatedCallback? onStreetViewCreated,
  3. CameraChangeListener? onCameraChangeListener,
  4. PanoramaChangeListener? onPanoramaChangeListener,
  5. PanoramaClickListener? onPanoramaClickListener,
  6. PanoramaLongClickListener? onPanoramaLongClickListener,
  7. CloseClickListener? onCloseClickListener,
  8. String? initPanoId,
  9. LatLng? initPos,
  10. double? initRadius,
  11. StreetViewSource? initSource,
  12. double? initFov,
  13. double? initBearing,
  14. double? initTilt,
  15. double? initZoom,
  16. bool? panningGesturesEnabled,
  17. bool streetNamesEnabled = true,
  18. bool userNavigationEnabled = true,
  19. bool? zoomGesturesEnabled,
  20. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  21. Set<Marker>? markers,
  22. bool? addressControl,
  23. ControlPosition? addressControlOptions,
  24. bool? disableDefaultUI,
  25. bool? disableDoubleClickZoom = kIsWeb ? false : null,
  26. bool? enableCloseButton = kIsWeb ? false : null,
  27. bool? fullscreenControl,
  28. ControlPosition? fullscreenControlOptions,
  29. bool? linksControl,
  30. bool? motionTracking,
  31. bool? motionTrackingControl,
  32. ControlPosition? motionTrackingControlOptions,
  33. bool? scrollwheel = kIsWeb ? true : null,
  34. bool? panControl,
  35. ControlPosition? panControlOptions,
  36. bool? zoomControl,
  37. ControlPosition? zoomControlOptions,
  38. 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);