copyWith method
Creates a copy with updated fields.
Implementation
MessageContent copyWith({
String? plainText,
String? cipherText,
String? nonce,
}) {
return MessageContent(
plainText: plainText ?? this.plainText,
cipherText: cipherText ?? this.cipherText,
nonce: nonce ?? this.nonce,
);
}