setConsent static method

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

Implementation

static Future<bool?> setConsent(String consent) async {
  bool? result = await Ads.instance.channel.invokeMethod('HwAds-setConsent', {
    'consent': consent,
  });
  return result;
}