BannerWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BannerWidget
Constructors
- BannerWidget.new({Key? key, String? casId, AdViewListener? adListener, OnAdImpressionListener? onImpressionListener, AdSize size = AdSize.banner, bool? isAutoloadEnabled, int? refreshInterval, int? maxWidthDpi, AdViewListener? listener})
-
const
Properties
- adListener → AdViewListener?
-
Through the use of single advanced AdViewListener, you can listen for ads load events.
Repeats the behavior of
loadCallback
andcontentCallback
and brings the description of callbacks to a more understandable form.final - casId → String?
-
The unique identifier for the CAS content, typically an application bundle name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoloadEnabled → bool?
-
A Boolean value that determines whether autoloading of ads in the receiver is enabled.
If enabled, you do not need to call the
load
method to load ads.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- listener → AdViewListener?
-
final
- maxWidthDpi → int?
-
final
- onImpressionListener → OnAdImpressionListener?
-
Gets or sets the listener for ad impression events.
final
- refreshInterval → int?
-
Set the number of seconds an ad is displayed before a new ad is shown.
After the interval has passed, a new advertisement will be automatically loaded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → AdSize
-
Current banner ad size.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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, 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