copyWith method
Returns a copy with the given fields replaced.
Implementation
FailedMessageEntry copyWith({
MessageGroup? messageGroup,
MessageDispatchCallback? onDispatch,
}) {
return FailedMessageEntry(
messageId: messageId,
messageGroup: messageGroup ?? this.messageGroup,
onDispatch: onDispatch ?? this.onDispatch,
);
}