PreloadVideo<T extends VideoVo, M extends VideoModel<T>> constructor

const PreloadVideo<T extends VideoVo, M extends VideoModel<T>>({
  1. Key? key,
  2. required M model,
  3. int initPlayIndex = 0,
  4. ItemPanBuilder? buildPan,
  5. Future<ServicePlayStateVo> getPlayUrlService(
    1. T item
    )?,
  6. Widget? loadingBuild,
  7. Widget? errorBuild,
  8. Widget? noDataBuild,
  9. Widget? noMoreBuild,
  10. double scrollSpeed = 0.4,
  11. Widget? needAdvBuild,
  12. Widget? needPurchaseBuild,
  13. Widget? needVipBuild,
  14. Widget? gettingPlayUrlBuild,
  15. Widget? getErrorPlayUrlBuild,
})

Implementation

const  PreloadVideo(
    {super.key,
      required this.model,
      this.initPlayIndex = 0,
      this.buildPan,
      this.getPlayUrlService,
      this.loadingBuild,
      this.errorBuild,
      this.noDataBuild,
      this.noMoreBuild,
      this.scrollSpeed = 0.4,
      this.needAdvBuild,
      this.needPurchaseBuild,
      this.needVipBuild,
      this.gettingPlayUrlBuild,
      this.getErrorPlayUrlBuild,
    });