Consent management
Learn how to implement consent management for Flutter.
This is the previous version (2.x) of Tealium for Flutter. For the latest version, see Tealium for Flutter.
Usage
Usage of this module is recommended. Learn more about consent management.
Consent status
To get the consent status of a user as a callback function, call the getConsentStatus() method.
The following example gets the consent status:
Tealium.getConsentStatus()
.then((status) => print('Consent Status: $status'));
To set the consent status of a user, call the setConsentStatus() method.
The following example grants consent:
Tealium.setConsentStatus(ConsentStatus.consented);
Consent categories
To get the consent categories of a user, call the getConsentCategories() method.
The following example gets the consent categories for a user:
Tealium.getConsentCategories()
.then((categories) =>
print('Consent Categories: ' + categories.join(",")));
To set the consent categories of a user, call the setConsentCategories() method, passing a list of consent categories.
The following example sets the consent categories:
Tealium.setConsentCategories([ConsentCategories.analytics,
ConsentCategories.email]);
This page was last updated: March 31, 2026