copyWith method
StructuredFormattingGoogle
copyWith({
- String? mainText,
- List<
MatchedSubstringGoogle> ? mainTextMatchedSubstrings, - String? secondaryText,
Implementation
StructuredFormattingGoogle copyWith({
String? mainText,
List<MatchedSubstringGoogle>? mainTextMatchedSubstrings,
String? secondaryText,
}) =>
StructuredFormattingGoogle(
mainText: mainText ?? this.mainText,
mainTextMatchedSubstrings:
mainTextMatchedSubstrings ?? this.mainTextMatchedSubstrings,
secondaryText: secondaryText ?? this.secondaryText,
);