copyWith method

RichTextDiff copyWith({
  1. RichText? text,
  2. RichText? oldText,
})

Implementation

RichTextDiff copyWith({RichText? text, RichText? oldText}) =>
    RichTextDiff(text: text ?? this.text, oldText: oldText ?? this.oldText);