Consent class

Adobe Experience Platform Consent API.

Constructors

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Properties

consents Future<Map<String, dynamic>>
Retrieves the current consent preferences stored in the Consent extension Output example: {"consents": {"collect": {"val": "y"}}}
no setter
extensionVersion Future<String>
Returns the version of the Consent extension
no setter

Static Methods

update(Map<String, dynamic> consents) Future<void>
Merges the existing consents with the given consents. Duplicate keys will take the value of those passed in the API Input example: {"consents": {"collect": {"val": "y"}}}