logic/helpers/ad.helper library

Functions

getNativeAdLoadingWidget(FastAdSize adSize) Widget
Returns a loading widget for native ads based on the provided ad size.
isAdRequestAllowedForCountry({String? country, List<String>? whiteList}) bool
Determines if an ad request is allowed based on the user's country and a whitelist of allowed countries.
showConsentForm() Future<void>
showConsentFormIfNeeded() Future<void>
tryDecodeAd(String? data) FastResponseAd?
Tries to decode ad data from the provided JSON data.
tryDecodeAds(String? data) List<FastResponseAd>?
Tries to decode a list of advertisements from JSON data.