EasyImageViewPager constructor

const EasyImageViewPager({
  1. Key? key,
  2. required EasyImageProvider easyImageProvider,
  3. required PageController pageController,
  4. bool doubleTapZoomable = false,
  5. void onScaleChanged(
    1. double
    )?,
  6. bool infinitelyScrollable = false,
})

Create new instance, using the easyImageProvider to populate the PageView, and the pageController to control the initial image index to display. The optional doubleTapZoomable boolean defaults to false and allows double tap to zoom.

Implementation

const EasyImageViewPager({
  Key? key,
  required this.easyImageProvider,
  required this.pageController,
  this.doubleTapZoomable = false,
  this.onScaleChanged,
  this.infinitelyScrollable = false,
}) : super(key: key);