ChatPicturePreview constructor

ChatPicturePreview({
  1. Key? key,
  2. required List<PicInfo> picList,
  3. int index = 0,
  4. String? heroTag,
  5. Dio? dio,
  6. dynamic onStartDownload(
    1. String url,
    2. String cachePath
    )?,
  7. dynamic onDownloadFinished(
    1. String url,
    2. String cachePath
    )?,
  8. Color? background,
  9. bool enabledHero = false,
})

Implementation

ChatPicturePreview({
  Key? key,
  required this.picList,
  this.index = 0,
  this.heroTag,
  // this.onDownload,
  this.dio,
  this.onStartDownload,
  this.onDownloadFinished,
  this.background,
  this.enabledHero = false,
})  : this.controller = PageController(initialPage: index),
      super(key: key);