ACConsentable class
A purpose, feature, stack or vendor as returned by the consentable lists
(getPurposes, getExtraVendors, getPurposesByStatus...).
status and type carry the numeric codes of the native SDKs, as
strings, identically on Android and iOS — not the status names used by
getConsentStatus or accepted by get...ByStatus:
final purposes = await sdk.getPurposes();
final allowed = purposes.where((c) => c.status == '1'); // not 'ALLOWED'
Constructors
-
ACConsentable({required String id, required String type, required String status, required Map<
String, String> additionalInfo}) -
const
- ACConsentable.fromMap(Map map)
-
factory
Properties
-
additionalInfo
→ Map<
String, String> -
Any other field the CMP attaches to this entry, as strings.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Identifier: the IAB ID (e.g.
'1') for IAB entries, the AppConsent ID for extra purposes and vendors.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
Native status code:
'1'allowed,'-1'disallowed,'0'pending,'2'mixed.final - type → String
-
Native type code:
'0'purpose,'1'feature,'2'special feature,'3'special purpose. Extra purposes and extra vendors also report'0': tell them apart by the list they come from.final
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.
inherited