getInfiniteScrollAdForIndex abstract method
Widget
getInfiniteScrollAdForIndex({
- required int infiniteScrollId,
- required int itemIndex,
- BannerEventListener? lifecycleCallbacks,
Creates Ad widget or an empty widget SizedBox.shrink(), depending from
provided itemIndex
, by that the SDK will automatically decides whether to display an ad for
a given position or not.
infiniteScrollId
is a group id of the advertisements inside the scrollable
widget, and can be get by using createInfiniteScroll method.
Implementation
Widget getInfiniteScrollAdForIndex({
required int infiniteScrollId,
required int itemIndex,
BannerEventListener? lifecycleCallbacks,
});