PreloadVideo<T extends VideoVo, M extends VideoModel<T> > constructor
const
PreloadVideo<T extends VideoVo, M extends VideoModel<T> > ({
- Key? key,
- required M model,
- int initPlayIndex = 0,
- ItemPanBuilder? buildPan,
- Future<
ServicePlayStateVo> getPlayUrlService(- T item
- Widget? loadingBuild,
- Widget? errorBuild,
- Widget? noDataBuild,
- Widget? noMoreBuild,
- double scrollSpeed = 0.4,
- Widget? needAdvBuild,
- Widget? needPurchaseBuild,
- Widget? needVipBuild,
- Widget? gettingPlayUrlBuild,
- 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,
});