resolveConsentOptions static method
Resolves the environment-aware default used when consent is omitted.
This is public only to make the policy easy to regression-test; apps should normally let init select the value from kDebugMode.
Implementation
@visibleForTesting
static AdsConsentOptions resolveConsentOptions({
AdsConsentOptions? consent,
bool debug = kDebugMode,
}) {
return consent ??
(debug
? const AdsConsentOptions.disabled()
: const AdsConsentOptions());
}