PlaceAutocompleteStructuredFormat class

Autocomplete Structured Format as returned from the google maps api.

Annotations
  • @freezed

Constructors

PlaceAutocompleteStructuredFormat({required String main_text, required List<PlaceAutocompleteMatchedSubstring> main_text_matched_substrings, required String secondary_text, List<PlaceAutocompleteMatchedSubstring>? secondary_text_matched_substrings})
Construct a PlaceAutocompleteStructuredFormat object.
const
factory
PlaceAutocompleteStructuredFormat.fromJson(Map<String, Object?> json)
Parse a PlaceAutocompleteStructuredFormat from json data.
factory

Properties

copyWith → $PlaceAutocompleteStructuredFormatCopyWith<PlaceAutocompleteStructuredFormat>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
main_text String
Contains the main text of a prediction, usually the name of the place.
no setterinherited
main_text_matched_substrings List<PlaceAutocompleteMatchedSubstring>
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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary_text String
Contains the secondary text of a prediction, usually the location of the place.
no setterinherited
secondary_text_matched_substrings List<PlaceAutocompleteMatchedSubstring>?
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.
no setterinherited

Methods

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

Operators

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