copyWith method

RichTextReference copyWith({
  1. String? name,
  2. RichText? text,
})

Implementation

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