copyWith method
Creates a copy of this entry with updated properties.
Supports the Immutable Object pattern for safe state updates.
Implementation
FailedMessageEntry copyWith({
MessageGroup? messageGroup,
MessageDispatchCallback? onDispatch,
}) {
return FailedMessageEntry(
messageId: messageId,
messageGroup: messageGroup ?? this.messageGroup,
onDispatch: onDispatch ?? this.onDispatch,
);
}