copyWith method

PredictionGoogle copyWith({
  1. String? description,
  2. List<MatchedSubstringGoogle>? matchedSubstrings,
  3. String? placeId,
  4. String? reference,
  5. StructuredFormattingGoogle? structuredFormatting,
  6. List<TermGoogle>? terms,
  7. List<String>? types,
})

Implementation

PredictionGoogle copyWith({
  String? description,
  List<MatchedSubstringGoogle>? matchedSubstrings,
  String? placeId,
  String? reference,
  StructuredFormattingGoogle? structuredFormatting,
  List<TermGoogle>? terms,
  List<String>? types,
}) =>
    PredictionGoogle(
      description: description ?? this.description,
      matchedSubstrings: matchedSubstrings ?? this.matchedSubstrings,
      placeId: placeId ?? this.placeId,
      reference: reference ?? this.reference,
      structuredFormatting: structuredFormatting ?? this.structuredFormatting,
      terms: terms ?? this.terms,
      types: types ?? this.types,
    );