PhotoGalleyScreen constructor

PhotoGalleyScreen({
  1. Key? key,
  2. required List<ImageProvider<Object>> photos,
  3. int initialIndex = 0,
  4. dynamic closeFunc()?,
})

Implementation

PhotoGalleyScreen(
    {Key? key, required this.photos, int initialIndex = 0, this.closeFunc})
    : super(key: key) {
  _pageController = PageController(initialPage: initialIndex);
  page.value = initialIndex;
}