copyWith method

Prediction copyWith({
  1. String? description,
  2. List<MatchedSubstring>? matchedSubstrings,
  3. String? placeId,
  4. String? reference,
  5. StructuredFormatting? structuredFormatting,
  6. List<Term>? terms,
  7. List<String>? types,
})

Implementation

Prediction copyWith({
  String? description,
  List<MatchedSubstring>? matchedSubstrings,
  String? placeId,
  String? reference,
  StructuredFormatting? structuredFormatting,
  List<Term>? terms,
  List<String>? types,
}) {
  return Prediction(
    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,
  );
}