PlacesAutocompleteField constructor

const PlacesAutocompleteField(
  1. {dynamic key,
  2. @required String apiKey,
  3. dynamic controller,
  4. dynamic leading,
  5. String hint: "Search",
  6. dynamic trailing,
  7. dynamic trailingOnTap,
  8. num offset,
  9. dynamic location,
  10. num radius,
  11. String language,
  12. String sessionToken,
  13. List<String> types,
  14. List components,
  15. bool strictbounds,
  16. dynamic onChanged,
  17. dynamic onSelected,
  18. dynamic onError,
  19. dynamic inputDecoration: const InputDecoration()}
)

Creates a text field like widget.

To remove the decoration entirely (including the extra padding introduced by the decoration to save space for the labels), set the decoration to null.

Implementation

const PlacesAutocompleteField({
  Key key,
  @required this.apiKey,
  this.controller,
  this.leading,
  this.hint = "Search",
  this.trailing,
  this.trailingOnTap,
  this.offset,
  this.location,
  this.radius,
  this.language,
  this.sessionToken,
  this.types,
  this.components,
  this.strictbounds,
  this.onChanged,
  this.onSelected,
  this.onError,
  this.inputDecoration = const InputDecoration(),
}) : super(key: key);