copyWith method
Implementation
FormattableText copyWith({String? text, List<StringRange>? matches}) {
return FormattableText(
text: text ?? this.text,
matches:
((matches?.isNotEmpty ?? false) ? matches : null) ?? this.matches,
);
}