PlaceAutocompletePrediction class

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)

Constructors

PlaceAutocompletePrediction({required String description, required List<PlaceAutocompleteMatchedSubstring> matchedSubstrings, required PlaceAutocompleteStructuredFormat structuredFormatting, required List<PlaceAutocompleteTerm> terms, String? placeId, int? distanceMeters, List<String>? types})
const
PlaceAutocompletePrediction.fromJson(Map<String, dynamic> json)
factory

Properties

description String
Contains the human-readable name for the returned result.
final
distanceMeters int?
The straight-line distance in meters from the origin.
final
hashCode int
The hash code for this object.
no setteroverride
matchedSubstrings List<PlaceAutocompleteMatchedSubstring>
A list of substrings that describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired.
final
placeId String?
A textual identifier that uniquely identifies a place.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structuredFormatting PlaceAutocompleteStructuredFormat
Provides pre-formatted text that can be shown in your autocomplete results.
final
terms List<PlaceAutocompleteTerm>
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>?
Contains an array of types that apply to this place. For example: "political", "locality" or "establishment", "geocode", "beauty_salon" .
final

Methods

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

Operators

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