setConsent static method
Sets the user consent string that complies with TCF v2.0.
Implementation
static Future<bool?> setConsent(String consent) async {
final bool? result = await Ads.instance.channel.invokeMethod(
'HwAds-setConsent',
<String, dynamic>{
'consent': consent,
},
);
return result;
}