ReliableDelivery class

One status update for a reliable send, published on RealtimeClient.deliveryStream.

Constructors

ReliableDelivery({required String id, required String target, required DeliveryStatus status, int attempt = 0, RealtimeFailure? failure, DateTime? timestamp})
ReliableDelivery.fromJson(Map<String, dynamic> json)
failure is restored as a message only; its code and source are not part of the JSON.
factory

Properties

attempt → int
Attempts written so far. 0 while the first is still waiting.
final
failure → RealtimeFailure?
Why the last attempt failed. Set on DeliveryStatus.failed, and on a DeliveryStatus.pending that follows a failed attempt.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The idempotency key: the deliveryId passed to sendReliable, or the one generated for it. The same on every attempt, so a server can drop duplicates.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → DeliveryStatus
Where the message has got to.
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
target → String
The hub method being called.
final
timestamp → DateTime
When this update happened.
final

Methods

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

Operators

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