DVAnalyticsEvent class abstract

An event is an ordinary data class with a name and a category.

class CheckoutCompleted extends DVAnalyticsEvent {
  const CheckoutCompleted(this.order);
  final Order order;
  @override String get name => 'checkout_completed';
  @override DVConsentCategory get category => Categories.product;
  @override Map<String, Object?> get properties => {'order': order};
}

A model in properties is serialized through its public shape, which leaves its sensitive fields out; a property that names a sensitive field directly refuses the whole event (DV-ANALYTICS-004).

Constructors

DVAnalyticsEvent()
const

Properties

category → DVConsentCategory
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
no setter
properties → Map<String, Object?>
no setter
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