copyWith method
PredictionGoogle
copyWith({
- String? description,
- List<
MatchedSubstringGoogle> ? matchedSubstrings, - String? placeId,
- String? reference,
- StructuredFormattingGoogle? structuredFormatting,
- List<
TermGoogle> ? terms, - 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,
);