copyWith method

FailedMessageEntry copyWith({
  1. MessageGroup? messageGroup,
  2. MessageDispatchCallback? onDispatch,
})

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,
  );
}