ConsentGranted class Adding data to your events Tracking events

Event used to track a user opting into data collection.

A consent document context will be attached to the event using the documentId and version arguments supplied.

Implemented types
Annotations

Constructors

ConsentGranted({required DateTime expiry, required String documentId, required String version, String? name, String? documentDescription})
const

Properties

documentDescription String?
Optional consent document description.
final
documentId String
The consent document ID.
final
expiry DateTime
The expiry date-time of the consent.
final
hashCode int
The hash code for this object.
no setterinherited
name String?
Optional consent document name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
The consent document version.
final

Methods

endpoint() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
override
toString() String
A string representation of this object.
inherited

Operators

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