DVStandardEvent class abstract
One of the events in this library. See the library documentation.
- Inheritance
-
- Object
- DVAnalyticsEvent
- DVStandardEvent
Constructors
- DVStandardEvent({DVConsentCategory? category})
Properties
- category → DVConsentCategory
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
no setterinherited
-
properties
→ Map<
String, 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
-
toPayload(
) → Map< String, Object?> - What is published on topic.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
commerce(
{num? value, String? currency, List< DVAnalyticsItem> items = const <DVAnalyticsItem>[]}) → Map<String, Object?> - The value, currency and items every commerce event shares, checked: Google Analytics drops a value that has no currency and keeps the event, so revenue would read zero with nothing saying why.
Constants
- defaultCategory → const DVConsentCategory
-
The category an event is kept under in the application's own store
unless it names another:
analytics. - topic → const String
-
The module topic each event is published to as it is tracked, as plain
data:
{name: 'generate_lead', params: {...}}.