ConsentInfo class

IAB TCF consent information which is provided by a CMP SDK.

See:

Inheritance
Annotations

Constructors

ConsentInfo({required Map<String, dynamic> raw, required int sdkId, required int? sdkVersion, required int? policyVersion, required bool? gdprApplies, required List<DataUsagePurpose> purposeConsents, required List<DataUsagePurpose> purposeLegitimateInterests, required List<DataUsagePurpose> publisherConsents, required List<DataUsagePurpose> publisherLegitimateInterests})
Create IAB TCF consent information which is provided by a CMP SDK.
const

Properties

gdprApplies bool?
Whether GDPR applies for the user in the current context.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
policyVersion int?
The unsigned integer representing the version of the TCF that these consents adhere to, if available.
finalinherited
publisherConsents List<DataUsagePurpose>
The DataUsagePurposes for which the publisher has a legal basis of consent.
final
publisherLegitimateInterests List<DataUsagePurpose>
The DataUsagePurposes for which the publisher has a legal basis of legitimate interests.
final
purposeConsents List<DataUsagePurpose>
The DataUsagePurposes for advertising for which a legal basis of consent exists.
final
purposeLegitimateInterests List<DataUsagePurpose>
The DataUsagePurposes for advertising for which a legal basis of legitimate interests exists.
final
raw Map<String, dynamic>
The raw consent info returned from the CMD SDK.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkId int
The id of the CMP SDK, which provided this consent information.
finalinherited
sdkVersion int?
The version of the CMP SDK which provided this consent information, if available.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override