AdropBannerView class

Constructors

AdropBannerView({Key? key, required String unitId, AdropBannerListener? listener})
Banner view class responsible for displaying banner ads to the user.

Properties

adSize Size?
Optional fixed size for the banner view (width, height)
getter/setter pair
creativeSize CreativeSize?
no setter
hashCode int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
listener AdropBannerListener?
final
requestId String
Identifies this banner instance. With loads the same unitId can fill multiple slots — compare the requestId entry in a listener callback's metadata against this value to tell which slot fired.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unitId String
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
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
dispose() Future<void>
Invoked when dispose() is called on the corresponding AdropBannerView
load() Future<void>
Requests an ad from Adrop using the Ad unit ID of the AdropBannerView.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pauses playback of the video banner ad.
play() Future<void>
Starts or resumes playback of the video banner ad.
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, int wrapWidth = 65}) 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

Static Methods

loads({required String unitId, AdropBannerListener? listener}) Future<List<AdropBannerView>>
Loads up to 5 banners with a single network request and returns them as ready-to-mount widgets. Do NOT call load on the returned widgets — they are already loaded (a second load would issue another network request).