setConsent static method

Future<bool?> setConsent(
  1. String consent
)

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;
}