PhotoPage constructor

const PhotoPage({
  1. Key? key,
  2. required ImageProvider<Object> imageProvider,
  3. ImageProvider<Object>? thumbImageProvider,
  4. LoadingBuilder? loadingBuilder,
  5. Widget? loadFailedChild,
  6. Color backcolor = Colors.black,
  7. String? heroTag,
  8. RouteType routeType = RouteType.fade,
  9. bool allowShrinkPhoto = true,
  10. bool willPop = false,
  11. bool? gaplessPlayback,
  12. bool allowPullDownToPop = false,
  13. PullDownPopConfig pullDownPopConfig = const PullDownPopConfig(),
  14. Color? imageColor,
  15. BlendMode? imageColorBlendMode,
  16. FilterQuality? filterQuality,
  17. ImageLoadSuccess? imageLoadSuccess,
  18. ImageLoadSuccess? thumbImageLoadSuccess,
  19. OnScaleChanged? onScaleChanged,
  20. PullDownPopChanged? pullDownPopChanged,
})

Implementation

const PhotoPage({
  Key? key,
  required this.imageProvider,
  this.thumbImageProvider,
  this.loadingBuilder,
  this.loadFailedChild,
  this.backcolor = Colors.black,
  this.heroTag,
  this.routeType = RouteType.fade,
  this.allowShrinkPhoto = true,
  this.willPop = false,
  this.gaplessPlayback,
  this.allowPullDownToPop = false,
  this.pullDownPopConfig = const PullDownPopConfig(),
  this.imageColor,
  this.imageColorBlendMode,
  this.filterQuality,
  this.imageLoadSuccess,
  this.thumbImageLoadSuccess,
  this.onScaleChanged,
  this.pullDownPopChanged,
}) : super(key: key);