FastAdInfo class

A class representing information about FastAd.

Inheritance
  • Object
  • TModel
  • TEntity
  • TDocument
  • FastAdInfo

Constructors

FastAdInfo({String? androidNativeAdUnitId, String? iosNativeAdUnitId, String? androidBannerAdUnitId, String? iosBannerAdUnitId, String? androidInterstitialAdUnitId, String? iosInterstitialAdUnitId, String? androidRewardedAdUnitId, String? iosRewardedAdUnitId, String? androidSplashAdUnitId, String? iosSplashAdUnitId, String? androidRewardedInterstitialAdUnitId, String? iosRewardedInterstitialAdUnitId, List<String>? keywords, List<String>? countries, String? adServiceUriAuthority, int splashAdThreshold = kFastSplashAdThreshold, int refreshInterval = kFastAdRefreshInterval, bool autoRefresh = kFastAdAutoRefresh, bool showRemoveAdLink = kFastAdShowRemoveAdLink, bool androidNativeAdmobEnabled = kFastNativeAdmobEnabled, bool iosNativeAdmobEnabled = kFastNativeAdmobEnabled, int interstitialAdThreshold = kFastInterstitialAdThreshold, int splashAdTimeThreshold = kFastAdSplashAdTimeThreshold, FastAdUnits? androidSplashAdUnits, FastAdUnits? iosSplashAdUnits, FastAdUnits? androidInterstitialAdUnits, FastAdUnits? iosInterstitialAdUnits, FastAdUnits? androidRewardedAdUnits, FastAdUnits? iosRewardedAdUnits, FastAdUnits? androidNativeAdUnits, FastAdUnits? iosNativeAdUnits})
Create a new FastAdInfo instance.
const
FastAdInfo.fromJson(Map<String, dynamic> json)
Create a new FastAdInfo instance from a JSON map.
factory

Properties

adServiceUriAuthority → String?
The authority of the ad service URI.
final
androidBannerAdUnitId → String?
The Ad Unit ID for banner ads on Android.
final
androidInterstitialAdUnitId → String?
The Ad Unit ID for interstitial ads on Android.
final
androidInterstitialAdUnits → FastAdUnits?
final
androidNativeAdmobEnabled → bool
final
androidNativeAdUnitId → String?
The Ad Unit ID for native ads on Android.
final
androidNativeAdUnits → FastAdUnits?
final
androidRewardedAdUnitId → String?
The Ad Unit ID for rewarded ads on Android.
final
androidRewardedAdUnits → FastAdUnits?
final
androidRewardedInterstitialAdUnitId → String?
The Ad Unit ID for rewarded interstitial ads on Android.
final
androidSplashAdUnitId → String?
The Ad Unit ID for splash ads on Android.
final
androidSplashAdUnits → FastAdUnits?
final
autoRefresh → bool
Whether the ads should be refreshed automatically.
final
bannerAdUnitId → String?
Get the Ad Unit ID for banner ads.
no setter
countries → List<String>?
The list of countries targeted for the ads.
final
hashCode → int
The hash code for this object.
no setterinherited
interstitialAdThreshold → int
The threshold value for interstitial ads.
final
interstitialAdUnitId → String?
Get the Ad Unit ID for interstitial ads.
no setter
interstitialAdUnits → FastAdUnits?
no setter
iosBannerAdUnitId → String?
The Ad Unit ID for banner ads on iOS.
final
iosInterstitialAdUnitId → String?
The Ad Unit ID for interstitial ads on iOS.
final
iosInterstitialAdUnits → FastAdUnits?
final
iosNativeAdmobEnabled → bool
final
iosNativeAdUnitId → String?
The Ad Unit ID for native ads on iOS.
final
iosNativeAdUnits → FastAdUnits?
final
iosRewardedAdUnitId → String?
The Ad Unit ID for rewarded ads on iOS.
final
iosRewardedAdUnits → FastAdUnits?
final
iosRewardedInterstitialAdUnitId → String?
The Ad Unit ID for rewarded interstitial ads on iOS.
final
iosSplashAdUnitId → String?
The Ad Unit ID for splash ads on iOS.
final
iosSplashAdUnits → FastAdUnits?
final
keywords → List<String>?
The list of keywords associated with the ads.
final
nativeAdmobEnabled → bool
no setter
nativeAdUnitId → String?
Get the Ad Unit ID for native ads.
no setter
nativeAdUnits → FastAdUnits?
no setter
props → List<Object?>
Returns a list of properties used to determine if two FastAdInfo instances are equal.
no setter
refreshInterval → int
The refresh interval for ads. The default value is 90 seconds.
final
rewardedAdUnitId → String?
Get the Ad Unit ID for rewarded ads.
no setter
rewardedAdUnits → FastAdUnits?
no setter
rewardedInterstitialAdUnitId → String?
Get the Ad Unit ID for rewarded interstitial ads.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Whether the ads should show a link to remove ads.
final
splashAdThreshold → int
The threshold value for splash ads.
final
splashAdTimeThreshold → int
final
splashAdUnitId → String?
Get the Ad Unit ID for splash ads.
no setter
splashAdUnits → FastAdUnits?
no setter
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
version → int
The version of the document.
no setterinherited

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() → FastAdInfo
Creates a new FastAdInfo instance as a copy of the current instance.
override
copyWith({String? androidNativeAdUnitId, String? iosNativeAdUnitId, String? androidBannerAdUnitId, String? iosBannerAdUnitId, String? androidInterstitialAdUnitId, String? iosInterstitialAdUnitId, String? androidRewardedAdUnitId, String? iosRewardedAdUnitId, String? androidSplashAdUnitId, String? iosSplashAdUnitId, String? androidRewardedInterstitialAdUnitId, String? iosRewardedInterstitialAdUnitId, List<String>? keywords, List<String>? countries, int? splashAdThreshold, String? adServiceUriAuthority, int? refreshInterval, bool? autoRefresh, bool? showRemoveAdLink, bool? androidNativeAdmobEnabled, bool? iosNativeAdmobEnabled, int? interstitialAdThreshold, int? splashAdTimeThreshold, FastAdUnits? androidSplashAdUnits, FastAdUnits? iosSplashAdUnits, FastAdUnits? androidInterstitialAdUnits, FastAdUnits? iosInterstitialAdUnits, FastAdUnits? androidRewardedAdUnits, FastAdUnits? iosRewardedAdUnits, FastAdUnits? androidNativeAdUnits, FastAdUnits? iosNativeAdUnits}) → FastAdInfo
Creates a new FastAdInfo instance with the provided properties.
override
copyWithDefaults() → TModel
inherited
debug({String? debugLabel}) → void
Print the values of properties in debug mode.
getAdUnitId(String adType, String? iosUnitId, String? androidUnitId) → String?
Get the Ad Unit ID based on the platform and ad type.
getAdUnits(String adType, FastAdUnits? iosUnits, FastAdUnits? androidUnits) → FastAdUnits?
merge(covariant FastAdInfo model) → FastAdInfo
Merges the properties of another FastAdInfo instance into this one.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert the FastAdInfo instance to a JSON map.
override
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited