Panorama constructor

Panorama({
  1. Key? key,
  2. double latitude = 0,
  3. double longitude = 0,
  4. double zoom = 1.0,
  5. double minLatitude = -90.0,
  6. double maxLatitude = 90.0,
  7. double minLongitude = -180.0,
  8. double maxLongitude = 180.0,
  9. double minZoom = 1.0,
  10. double maxZoom = 5.0,
  11. double sensitivity = 1.0,
  12. double animSpeed = 0.0,
  13. bool animReverse = true,
  14. int latSegments = 32,
  15. int lonSegments = 64,
  16. bool interactive = true,
  17. SensorControl sensorControl = SensorControl.None,
  18. Rect croppedArea = const Rect.fromLTWH(0.0, 0.0, 1.0, 1.0),
  19. double croppedFullWidth = 1.0,
  20. double croppedFullHeight = 1.0,
  21. dynamic onViewChanged(
    1. double longitude,
    2. double latitude,
    3. double tilt
    )?,
  22. dynamic onTap(
    1. double longitude,
    2. double latitude,
    3. double tilt
    )?,
  23. dynamic onLongPressStart(
    1. double longitude,
    2. double latitude,
    3. double tilt
    )?,
  24. dynamic onLongPressMoveUpdate(
    1. double longitude,
    2. double latitude,
    3. double tilt
    )?,
  25. dynamic onLongPressEnd(
    1. double longitude,
    2. double latitude,
    3. double tilt
    )?,
  26. Image? child,
  27. List<Hotspot>? hotspots,
})

Implementation

Panorama({
  Key? key,
  this.latitude = 0,
  this.longitude = 0,
  this.zoom = 1.0,
  this.minLatitude = -90.0,
  this.maxLatitude = 90.0,
  this.minLongitude = -180.0,
  this.maxLongitude = 180.0,
  this.minZoom = 1.0,
  this.maxZoom = 5.0,
  this.sensitivity = 1.0,
  this.animSpeed = 0.0,
  this.animReverse = true,
  this.latSegments = 32,
  this.lonSegments = 64,
  this.interactive = true,
  this.sensorControl = SensorControl.None,
  this.croppedArea = const Rect.fromLTWH(0.0, 0.0, 1.0, 1.0),
  this.croppedFullWidth = 1.0,
  this.croppedFullHeight = 1.0,
  this.onViewChanged,
  this.onTap,
  this.onLongPressStart,
  this.onLongPressMoveUpdate,
  this.onLongPressEnd,
  this.child,
  this.hotspots,
}) : super(key: key);