MaxAdView class
Represents an AdView ad (Banner / MREC).
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MaxAdView
Constructors
-
MaxAdView({Key? key, required String adUnitId, required AdFormat adFormat, String? placement, String? customData, Map<
String, String?> ? extraParameters, Map<String, dynamic> ? localExtraParameters, AdViewAdListener? listener, bool isAutoRefreshEnabled = true, bool visible = true, double? adaptiveBannerWidth}) -
Creates a new ad view directly in the user's widget tree.
const
Properties
- adaptiveBannerWidth → double?
-
The width of the banner for adaptive banners.
final
- adFormat → AdFormat
-
A string value representing the ad format to load ads for. Should be either AdFormat.banner or AdFormat.mrec.
final
- adUnitId → String
-
A string value representing the ad unit ID to load ads for.
final
- customData → String?
-
A string value representing the customData name that you assign when you integrate each ad format, for granular reporting in ad events.
final
-
extraParameters
→ Map<
String, String?> ? -
A list of extra parameter key/value pairs for the ad.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoRefreshEnabled → bool
-
A boolean value representing whether the ad currently has auto-refresh enabled or not. Defaults to true.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- listener → AdViewAdListener?
-
The listener for various ad callbacks.
final
-
localExtraParameters
→ Map<
String, dynamic> ? -
A list of local extra parameters to pass to the adapter instances.
final
- placement → String?
-
A string value representing the placement name that you assign when you integrate each ad format, for granular reporting in ad events.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visible → bool
-
A boolean value to switch between showing the widget or hiding it until an initial ad is loaded. Defaults to true.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement 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