FlutterGoogleStreetView constructor

const FlutterGoogleStreetView({
  1. Key? key,
  2. StreetViewCreatedCallback? onStreetViewCreated,
  3. CameraChangeListener? onCameraChangeListener,
  4. PanoramaChangeListener? onPanoramaChangeListener,
  5. PanoramaClickListener? onPanoramaClickListener,
  6. PanoramaLongClickListener? onPanoramaLongClickListener,
  7. String? initPanoId,
  8. LatLng? initPos,
  9. double? initRadius,
  10. StreetViewSource? initSource,
  11. double? initFov = 90,
  12. double? initBearing,
  13. double? initTilt,
  14. double? initZoom,
  15. bool panningGesturesEnabled = true,
  16. bool streetNamesEnabled = true,
  17. bool userNavigationEnabled = true,
  18. bool zoomGesturesEnabled = true,
  19. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
})

Implementation

const FlutterGoogleStreetView(
    {Key? key,
    this.onStreetViewCreated,
    this.onCameraChangeListener,
    this.onPanoramaChangeListener,
    this.onPanoramaClickListener,
    this.onPanoramaLongClickListener,
    this.initPanoId,
    this.initPos,
    this.initRadius,
    this.initSource,
    this.initFov = 90, //iOS only
    this.initBearing,
    this.initTilt,
    this.initZoom,
    this.panningGesturesEnabled = true,
    this.streetNamesEnabled = true,
    this.userNavigationEnabled = true,
    this.zoomGesturesEnabled = true,
    this.gestureRecognizers})
    : assert((initPanoId != null) ^ (initPos != null)),
      assert((initTilt != null && initTilt >= -90 && initTilt <= 90) ||
          initTilt == null),
      super(key: key);