copyWith method

RichTextMentionName copyWith({
  1. RichText? text,
  2. int? userId,
})

Implementation

RichTextMentionName copyWith({RichText? text, int? userId}) =>
    RichTextMentionName(
      text: text ?? this.text,
      userId: userId ?? this.userId,
    );