AdmobOpenAd class
Utility class that manages loading and showing app open ads.
Constructors
- AdmobOpenAd(String adUnitId, {bool isEnableAd()?})
Properties
- adUnitId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAdAvailable → bool
-
no setter
- isEnableAd → bool Function()?
-
final
- maxCacheDuration → Duration
-
Maximum duration allowed between loading and showing the ad.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadAd(
) → void - Load an AppOpenAd.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showAdIfAvailable(
{VoidCallback? onDismiss}) → void - Shows the ad, if one exists and is not already being shown.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited