PlaceAutocompleteStructuredFormat constructor

const PlaceAutocompleteStructuredFormat({
  1. required String main_text,
  2. required List<PlaceAutocompleteMatchedSubstring> main_text_matched_substrings,
  3. required String secondary_text,
  4. List<PlaceAutocompleteMatchedSubstring>? secondary_text_matched_substrings,
})

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;