logic/helpers/helpers library
Functions
-
buildAdConsentSettingItem(
BuildContext context, {String? labelText}) → FastItem< String> -
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.