setConsentCategories static method

dynamic setConsentCategories(
  1. List<ConsentCategories> categories
)

Sets a List of ConsentCategories for the user

Implementation

static setConsentCategories(List<ConsentCategories> categories) {
  var categoriesList = categories.map((item) => item.toString()).toList();
  _channel
      .invokeMethod('setConsentCategories', {'categories': categoriesList});
}