GoogleLocationAutoCompleteTextField constructor

GoogleLocationAutoCompleteTextField({
  1. required TextEditingController textEditingController,
  2. required String googleAPIKey,
  3. int debounceTime = 600,
  4. InputDecoration inputDecoration = const InputDecoration(),
  5. ItemClick? itemClick,
  6. bool isLatLngRequired = true,
  7. TextStyle textStyle = const TextStyle(),
  8. List<String>? countries,
  9. GetPlaceDetailswWithLatLng? getPlaceDetailWithLatLng,
  10. ListItemBuilder? itemBuilder,
  11. BoxDecoration? boxDecoration,
  12. bool isCrossBtnShown = true,
  13. Widget? seperatedBuilder,
  14. bool showError = true,
  15. double? containerHorizontalPadding,
  16. double? containerVerticalPadding,
  17. FocusNode? focusNode,
  18. PlaceType? placeType,
  19. String? language = 'en',
  20. Widget noOptionsFoundBuilder(
    1. BuildContext context
    )?,
  21. Widget manualLocationBuilder(
    1. BuildContext context
    )?,
  22. void manualLocationClick(
    1. BuildContext context
    )?,
  23. Color? suffixIconColor,
  24. AssetImage? suffixIcon,
  25. AssetImage? suffixIconAlternate,
  26. void onChanged(
    1. String
    )?,
  27. void onTapOutside()?,
  28. 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});