ChanceAnalyticsEvent class final

A chance event the gamification server built and returned in its grantChance or play answer (Digia Chance Granted, Digia Gamification Assigned, Digia Chance Denied, Digia Game Played). The SDK only forwards it, to Digia analytics and never to the CEP, keeping the server's eventId (a UUIDv5, so a re-send dedupes), occurredAt and campaignId. Port of iOS ChanceAnalyticsEvent.

Inheritance

Constructors

ChanceAnalyticsEvent({required String eventName, required String eventId, required String occurredAt, required String campaignId, Map<String, Object?> values = const {}})
const

Properties

campaignId → String
final
eventId → String
final
eventName → String
final
hashCode → int
The hash code for this object.
no setterinherited
occurredAt → String
final
properties → Map<String, Object?>
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Map<String, Object?>
Property values the server sent: strings, numbers and booleans only. A null is dropped, as Android drops it.
final

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