copyWith method
ComposeRichMessageWithAi
copyWith({
- InputRichMessage? message,
- String? translateToLanguageCode,
- String? styleName,
- String? customPrompt,
- bool? addEmojis,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ComposeRichMessageWithAi copyWith({
InputRichMessage? message,
String? translateToLanguageCode,
String? styleName,
String? customPrompt,
bool? addEmojis,
}) => ComposeRichMessageWithAi(
message: message ?? this.message,
translateToLanguageCode:
translateToLanguageCode ?? this.translateToLanguageCode,
styleName: styleName ?? this.styleName,
customPrompt: customPrompt ?? this.customPrompt,
addEmojis: addEmojis ?? this.addEmojis,
);