AdRepo class abstract
Abstract class defining the required methods for the Ad repository
- Implementers
Constructors
- AdRepo()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadAppOpenAd(
) → Future< void> - Loads the app open ad.
-
loadBannerAd(
) → Future< void> - Loads the banner ad.
-
loadInterAd(
) → void - Loads the interstitial ad.
-
loadMediumNative(
) → Future< void> - Loads the medium-sized native ad.
-
loadRewardedAd(
) → void - Loads the rewarded ad.
-
loadSmallNative(
) → Future< void> - Loads the small-sized native ad.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showAdCounter(
bool showCounter) → Widget -
Displays the ad counter.
The
showCounterboolean determines if the ad counter should be shown. -
showBannerAd(
) → Widget - Displays the banner ad.
-
showInterAd(
{required dynamic callBack({InterstitialAd? ad, AdError? error})}) → void - Displays the interstitial ad. A callback function is passed to handle success or failure of the ad.
-
showNative(
{NativeADType nativeADType = NativeADType.medium}) → Widget -
Displays a native ad.
You can specify whether it's a small ad by passing
isSmallas true or false. -
showOpenAppAd(
) → void - Displays the app open ad.
-
showOpenAppOnSplash(
{required void callBack({AppOpenAd? ad, AdError? error})}) → void - Displays the splash ad when the app is opened. A callback function is passed to handle success or failure of loading the ad.
-
showRewardedAd(
{required dynamic callBack({RewardedAd? ad, AdError? error}), required dynamic onReward(AdWithoutView ad, RewardItem reward)}) → void - Displays the rewarded ad. Callback functions are passed to handle the ad state (success or failure) and reward information.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited