updatePurposeConsent static method

void updatePurposeConsent(
  1. String categoryId,
  2. bool consentValue
)

Used to programmatically update a user's consent for a specific category

updatePurposeConsent("C0002", true)

Implementation

static void updatePurposeConsent(String categoryId, bool consentValue) {
  _channel.invokeMethod('updatePurposeConsent',
      {'group': categoryId, 'consentValue': consentValue});
}