R89InfiniteScrollAd class

A wrapper widget on RefineryAdFactory.getInfiniteScrollAdForIndex to create a scroll item ads with format AdFormat.infiniteScroll.

ListView.builder(
                          scrollDirection: Axis.horizontal,
                          itemCount: 40,
                          itemBuilder: (context, index) => Column(
                            children: [
                              Padding(
                                padding: const EdgeInsets.all(8.0),
                                child: Text("Item index $index"),
                              ),
                              // "Ad is added to list's item"
                              Center(
                                child: R89InfiniteScrollAd(
                                    infiniteScrollId: infiniteScrollId,
                                    itemIndex: index), // "The SDK will automatically detect whether to display or not an add for a given position"
                              )
                            ],
                          ),
                        )
Inheritance

Constructors

R89InfiniteScrollAd({required int infiniteScrollId, required int itemIndex, BannerEventListener? lifecycleCallbacks, 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.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
infiniteScrollId int
The scroll group id of the advertisements inside the scrollable preliminarly returned by RefineryAdFactory.createInfiniteScroll.
final
itemIndex int
Index of the item inside the scrollable widget, by which the SDK will automatically make a decision whether to display an ad for a given index or not.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lifecycleCallbacks BannerEventListener?
Optional parameter to listen ad's related events see the BannerEventListener to know when the callbacks are called.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited