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