GoogleLocationAutoCompleteTextField constructor
GoogleLocationAutoCompleteTextField({
- required TextEditingController textEditingController,
- required String googleAPIKey,
- int debounceTime = 600,
- InputDecoration inputDecoration = const InputDecoration(),
- ItemClick? itemClick,
- bool isLatLngRequired = true,
- TextStyle textStyle = const TextStyle(),
- List<
String> ? countries, - GetPlaceDetailswWithLatLng? getPlaceDetailWithLatLng,
- ListItemBuilder? itemBuilder,
- BoxDecoration? boxDecoration,
- bool isCrossBtnShown = true,
- Widget? seperatedBuilder,
- bool showError = true,
- double? containerHorizontalPadding,
- double? containerVerticalPadding,
- FocusNode? focusNode,
- PlaceType? placeType,
- String? language = 'en',
- Widget noOptionsFoundBuilder(
- BuildContext context
- Widget manualLocationBuilder(
- BuildContext context
- void manualLocationClick(
- BuildContext context
- Color? suffixIconColor,
- AssetImage? suffixIcon,
- AssetImage? suffixIconAlternate,
- void onChanged()?,
- void onTapOutside()?,
- Color? dividerColor,
Implementation
GoogleLocationAutoCompleteTextField(
{required this.textEditingController,
required this.googleAPIKey,
this.debounceTime: 600,
this.inputDecoration: const InputDecoration(),
this.itemClick,
this.isLatLngRequired = true,
this.textStyle: const TextStyle(),
this.countries,
this.getPlaceDetailWithLatLng,
this.itemBuilder,
this.boxDecoration,
this.isCrossBtnShown = true,
this.seperatedBuilder,
this.showError = true,
this.containerHorizontalPadding,
this.containerVerticalPadding,
this.focusNode,
this.placeType,
this.language = 'en',
this.noOptionsFoundBuilder,
this.manualLocationBuilder,
this.manualLocationClick,
this.suffixIconColor,
this.suffixIcon,
this.suffixIconAlternate,
this.onChanged,
this.onTapOutside,
this.dividerColor});