PendingEvent class
Constructors
-
PendingEvent({required String id, required PendingEventType eventType, required Map<
String, dynamic> eventData, required String integrationName, int attemptCount = 0, required DateTime lastAttempt, int retryIntervalSeconds = 30, required DateTime createdAt}) -
const
Properties
- attemptCount → int
-
final
- createdAt → DateTime
-
final
-
eventData
→ Map<
String, dynamic> -
final
- eventType → PendingEventType
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- integrationName → String
-
final
- lastAttempt → DateTime
-
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- retryIntervalSeconds → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldRetry → bool
-
Checks if it's time to retry the event
no setter
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited
Methods
-
copyWith(
{String? id, PendingEventType? eventType, Map< String, dynamic> ? eventData, String? integrationName, int? attemptCount, DateTime? lastAttempt, int? retryIntervalSeconds, DateTime? createdAt}) → PendingEvent -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the PendingEvent to JSON for storage
-
toOriginalEvent(
) → dynamic - Converts the pending event back to the original event
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromIdentifyEvent(
IdentifyEvent event, String integrationName, {int retryIntervalSeconds = 30}) → PendingEvent - Creates a PendingEvent from an IdentifyEvent
-
fromJson(
Map< String, dynamic> json) → PendingEvent - Creates a PendingEvent from JSON
-
fromPageViewEvent(
PageViewEvent event, String integrationName, {int retryIntervalSeconds = 30}) → PendingEvent - Creates a PendingEvent from a PageViewEvent
-
fromTrackEvent(
TrackEvent event, String integrationName, {int retryIntervalSeconds = 30}) → PendingEvent - Creates a PendingEvent from a TrackEvent