PhotoView constructor

const PhotoView({
  1. Key? key,
  2. required Widget child,
  3. Size? childSize,
  4. BoxDecoration? backgroundDecoration,
  5. bool wantKeepAlive = false,
  6. PhotoViewHeroAttributes? heroAttributes,
  7. ValueChanged<PhotoViewScaleState>? scaleStateChangedCallback,
  8. bool enableRotation = false,
  9. PhotoViewControllerBase<PhotoViewControllerValue>? controller,
  10. PhotoViewScaleStateController? scaleStateController,
  11. dynamic maxScale,
  12. dynamic minScale,
  13. dynamic initialScale,
  14. Alignment? basePosition,
  15. ScaleStateCycle? scaleStateCycle,
  16. PhotoViewImageTapUpCallback? onTapUp,
  17. PhotoViewImageTapDownCallback? onTapDown,
  18. PhotoViewImageScaleEndCallback? onScaleEnd,
  19. Size? customSize,
  20. HitTestBehavior? gestureDetectorBehavior,
  21. bool? tightMode,
  22. FilterQuality? filterQuality,
  23. bool? disableGestures,
  24. bool? enablePanAlways,
  25. bool? strictScale,
})

Implementation

const PhotoView({
  Key? key,
  required this.child,
  this.childSize,
  this.backgroundDecoration,
  this.wantKeepAlive = false,
  this.heroAttributes,
  this.scaleStateChangedCallback,
  this.enableRotation = false,
  this.controller,
  this.scaleStateController,
  this.maxScale,
  this.minScale,
  this.initialScale,
  this.basePosition,
  this.scaleStateCycle,
  this.onTapUp,
  this.onTapDown,
  this.onScaleEnd,
  this.customSize,
  this.gestureDetectorBehavior,
  this.tightMode,
  this.filterQuality,
  this.disableGestures,
  this.enablePanAlways,
  this.strictScale,
})  : errorBuilder = null,
      imageData = null,
      semanticLabel = null,
      gaplessPlayback = false,
      loadingBuilder = null,
      super(key: key);