R89InfiniteScrollAd constructor

const R89InfiniteScrollAd({
  1. required int infiniteScrollId,
  2. required int itemIndex,
  3. BannerEventListener? lifecycleCallbacks,
  4. Key? key,
})

Creates a video or banner ad widget with specified infiniteScrollId previously returned by RefineryAdFactory.createInfiniteScroll, itemIndex item's position in the parent scrollable widget, and optional lifecycleCallbacks.

Implementation

const R89InfiniteScrollAd(
    {required this.infiniteScrollId,
    required this.itemIndex,
    this.lifecycleCallbacks,
    super.key});