AVSImageGallery constructor

AVSImageGallery(
  1. BuildContext context, {
  2. required List<String> imagePaths,
  3. int? initialIndex = 0,
  4. bool? showCloseButton = true,
  5. bool? lastSwipeClose,
  6. dynamic onSwipe(
    1. int index
    )?,
  7. bool showBottomBar = true,
  8. Color? backgroundColor,
  9. LinearGradient? backgroundGradient,
  10. CloseButtonPosition closeButtonPosition = CloseButtonPosition.topRight,
  11. Widget? customCloseButton,
  12. ImageGalleryStyle? imageGalleryStyle,
})

Implementation

AVSImageGallery(
  this.context, {
  required this.imagePaths,
  this.initialIndex = 0,
  this.showCloseButton = true,
  this.lastSwipeClose,
  this.onSwipe,
  this.showBottomBar = true,
  this.backgroundColor,
  this.backgroundGradient,
  this.closeButtonPosition = CloseButtonPosition.topRight,
  this.customCloseButton,
  this.imageGalleryStyle,
});