Prediction class

Represents a prediction result from the Google Place Autocomplete API.

Each prediction provides details about a possible place matching the query.

Constructors

Prediction({String? description, List<MatchedSubstring>? matchedSubstrings, String? placeId, String? reference, StructuredFormatting? structuredFormatting, List<Term>? terms, List<String>? types})
Creates a Prediction instance.
Prediction.fromJson(dynamic json)
Creates a Prediction from a JSON map.
factory

Properties

description String?
A description of the predicted place.
final
hashCode int
The hash code for this object.
no setterinherited
matchedSubstrings List<MatchedSubstring>?
A list of matched substrings within the prediction description.
final
placeId String?
A unique identifier for the place.
final
reference String?
A reference string for the place.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structuredFormatting StructuredFormatting?
Structured formatting information for the prediction.
final
terms List<Term>?
A list of terms that make up the prediction description.
final
types List<String>?
A list of types associated with the prediction.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited