PendingMessage class

An outgoing message that has no ack yet (or failed).

Annotations

Constructors

PendingMessage({required String clientId, required String content, required DateTime createdAt, List<String> attachments = const [], PendingUpload? upload, bool failed = false, String? errorCode})
Creates a pending message.
const

Properties

attachments → List<String>
Upload ids attached.
final
clientId → String
Optimistic id sent as client_id.
final
content → String
Text.
final
createdAt → DateTime
When it was queued.
final
errorCode → String?
Why it failed.
final
failed → bool
The send failed (tap to retry).
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
upload → PendingUpload?
The file being uploaded for this message, if it carries one.
final

Methods

copyWith({bool? failed, String? errorCode, bool clearError = false, List<String>? attachments, PendingUpload? upload}) → PendingMessage
Copies with some fields replaced.
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