ImagePreview constructor

ImagePreview({
  1. Key? key,
  2. required List<Widget> images,
  3. int? startPosition = 0,
  4. bool showIndex = true,
  5. bool? showIndicators = false,
  6. Duration? swipeDuration,
  7. bool closeable = false,
  8. IconData? closeIcon,
  9. String closeIconPosition = 'top-right',
  10. dynamic onChange(
    1. int val
    )?,
  11. dynamic onClose(
    1. int index
    )?,
})

Implementation

ImagePreview(
    {Key? key,
    required this.images,
    this.startPosition: 0,
    this.showIndex: true,
    this.showIndicators: false,
    this.swipeDuration,
    this.closeable: false,
    this.closeIcon,
    this.closeIconPosition: 'top-right',
    this.onChange,
    this.onClose});