copyWith method
Creates a copy with the given fields replaced.
Implementation
TextMessageContent copyWith({TextContent? text}) {
return TextMessageContent(text: text ?? this.text);
}
Creates a copy with the given fields replaced.
TextMessageContent copyWith({TextContent? text}) {
return TextMessageContent(text: text ?? this.text);
}