AdmobEasyNative class
A widget that displays a native ad from AdMob.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AdmobEasyNative
Constructors
- AdmobEasyNative.mediumTemplate({double minWidth = 320, double minHeight = 320, double maxWidth = 400, double maxHeight = 400, TemplateType templateType = TemplateType.medium, Key? key, void onAdClicked(Ad)?, void onAdClosed(Ad)?, void onAdImpression(Ad)?, void onAdOpened(Ad)?, void onAdWillDismissScreen(Ad)?, void onPaidEvent(Ad, double, PrecisionType, String)?})
-
A medium template for the native ad.
const
- AdmobEasyNative.smallTemplate({double minWidth = 320, double minHeight = 90, double maxWidth = 400, double maxHeight = 200, TemplateType templateType = TemplateType.small, Key? key, void onAdClicked(Ad)?, void onAdClosed(Ad)?, void onAdImpression(Ad)?, void onAdOpened(Ad)?, void onAdWillDismissScreen(Ad)?, void onPaidEvent(Ad, double, PrecisionType, String)?})
-
A small template for the native ad.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxHeight → double
-
The maximum height of the ad.
final
- maxWidth → double
-
The maximum width of the ad.
final
- minHeight → double
-
The minimum height of the ad.
final
- minWidth → double
-
The minimum width of the ad.
final
- onAdClicked → void Function(Ad)?
-
Called when the ad is clicked.
final
- onAdClosed → void Function(Ad)?
-
Called when the ad is closed.
final
- onAdImpression → void Function(Ad)?
-
Called when the ad is impression.
final
- onAdOpened → void Function(Ad)?
-
Called when the ad is opened.
final
- onAdWillDismissScreen → void Function(Ad)?
-
Called when the ad will dismiss the screen.
final
- onPaidEvent → void Function(Ad, double, PrecisionType, String)?
-
Called when the ad receives a paid event.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- templateType → TemplateType
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AdmobEasyNative> -
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