GNAutocompleteTextformfield<T extends Object> constructor
const
GNAutocompleteTextformfield<T extends Object> ({
- Key? key,
- required TextEditingController controller,
- required List<
T> list, - required String displayStringForOption(
- T
- required dynamic onOptionSelect(
- T
- dynamic onChanged()?,
- String? hintText,
- String? labelText,
- Widget? prefixIconWidget,
- IconData? prefixIcon,
- bool isRequired = false,
- bool isCancelIcon = true,
- void onCancelPressed()?,
- String? customValidation()?,
Implementation
const GNAutocompleteTextformfield({
super.key,
required this.controller,
required this.list,
required this.displayStringForOption,
required this.onOptionSelect,
this.onChanged,
this.hintText,
this.labelText,
this.prefixIconWidget,
this.prefixIcon,
this.isRequired = false,
this.isCancelIcon = true,
this.onCancelPressed,
this.customValidation,
});