PlaceAutocompleteStructuredFormat constructor
const
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.
Implementation
const factory PlaceAutocompleteStructuredFormat({
/// Contains the main text of a prediction, usually the name of the place.
required String main_text,
/// 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.
required List<PlaceAutocompleteMatchedSubstring>
main_text_matched_substrings,
/// Contains the secondary text of a prediction, usually the location of the place.
required String secondary_text,
/// 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.
List<PlaceAutocompleteMatchedSubstring>? secondary_text_matched_substrings,
}) = _PlaceAutocompleteStructuredFormat;