copyWith method

MarkedUpText copyWith({
  1. String? text,
  2. List<MarkedUpTextSpan>? matchedParts,
})

Implementation

MarkedUpText copyWith({
  String? text,
  List<MarkedUpTextSpan>? matchedParts
}) {
  return MarkedUpText(
    text: text ?? this.text,
    matchedParts: matchedParts ?? this.matchedParts
  );
}