PlacesAutocompleteField constructor
const
PlacesAutocompleteField({
- Key? key,
- required String apiKey,
- TextEditingController? controller,
- Icon? leading,
- String hint = "Search",
- Icon? trailing,
- VoidCallback? trailingOnTap,
- Mode mode = Mode.fullscreen,
- num? offset,
- Location? location,
- num? radius,
- String? language,
- String? sessionToken,
- List<
String> ? types, - List<
Component> ? components, - bool? strictbounds,
- ValueChanged<
String?> ? onChanged, - ValueChanged<
Prediction> ? onSelected, - ValueChanged<
PlacesAutocompleteResponse> ? onError, - InputDecoration? 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.mode = Mode.fullscreen,
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);