allowConsent static method

Future<SubmitConsentResult?> allowConsent(
  1. String consentMessageId
)

Implementation

static Future<SubmitConsentResult?> allowConsent(
    String consentMessageId) async {
  var consentMessage = await loadConsentMessage(consentMessageId);
  consentMessage?.allowAll();
  if (consentMessage != null) {
    final result = await submitConsent(consentMessage);
    return result;
  }
  return null;
}