copyWith method

StructuredFormattingGoogle copyWith({
  1. String? mainText,
  2. List<MatchedSubstringGoogle>? mainTextMatchedSubstrings,
  3. 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,
    );