copyWith method

TextMessageContent copyWith({
  1. TextContent? text,
})

Creates a copy with the given fields replaced.

Implementation

TextMessageContent copyWith({TextContent? text}) {
  return TextMessageContent(text: text ?? this.text);
}