copyWith method

RichTextMention copyWith({
  1. RichText? text,
  2. String? username,
})

Implementation

RichTextMention copyWith({RichText? text, String? username}) =>
    RichTextMention(
      text: text ?? this.text,
      username: username ?? this.username,
    );