AutocompletePrediction class

Constructors

AutocompletePrediction({String? description, int? distanceMeters, String? id, List<MatchedSubstring>? matchedSubstrings, String? placeId, String? reference, StructuredFormatting? structuredFormatting, List<Term>? terms, List<String>? types})
AutocompletePrediction.fromJson(Map<String, dynamic> json)
factory

Properties

description String?
description contains the human-readable name for the returned result. For establishment results, this is usually the business name.
final
distanceMeters int?
distanceMeters contains an integer indicating the straight-line distance between the predicted place, and the specified origin point, in meters. This field is only returned when the origin point is specified in the request. This field is not returned in predictions of type route.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
id contains id.
final
matchedSubstrings List<MatchedSubstring>?
matchedSubstrings contains an array with offset value and length. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired.
final
placeId String?
placeId is a textual identifier that uniquely identifies a place. To retrieve information about the place, pass this identifier in the placeId field of a Places API request. For more information about place IDs.
final
reference String?
reference contains reference.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structuredFormatting StructuredFormatting?
structuredFormatting provides pre-formatted text that can be shown in your autocomplete results
final
terms List<Term>?
contains an array of terms identifying each section of the returned description (a section of the description is generally terminated with a comma).
final
types List<String>?
types contains an array of types that apply to this place. For example: "political", "locality" or "establishment", "geocode", "beauty_salon" . The array can contain multiple values.
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