FailedMessageEntry class
Entry for tracking failed message dispatch operations.
This class maintains the state needed to retry failed messages, following the Memento Pattern by storing the original dispatch callback and group information for later retry attempts.
Used internally by ChatController to manage message failures and provide retry functionality to users.
Constructors
- FailedMessageEntry({required String messageId, required MessageGroup messageGroup, required MessageDispatchCallback onDispatch})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageGroup → MessageGroup
-
The message group containing the failed message.
final
- messageId → String
-
The unique identifier of the failed message.
final
- onDispatch → MessageDispatchCallback
-
The original dispatch callback for retry operations.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{MessageGroup? messageGroup, MessageDispatchCallback? onDispatch}) → FailedMessageEntry - Creates a copy of this entry with updated properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited