GNAutocompleteTextformfield<T extends Object> constructor

const GNAutocompleteTextformfield<T extends Object>({
  1. Key? key,
  2. required TextEditingController controller,
  3. required List<T> list,
  4. required String displayStringForOption(
    1. T
    ),
  5. required dynamic onOptionSelect(
    1. T
    ),
  6. dynamic onChanged(
    1. String
    )?,
  7. String? hintText,
  8. String? labelText,
  9. Widget? prefixIconWidget,
  10. IconData? prefixIcon,
  11. bool isRequired = false,
  12. bool isCancelIcon = true,
  13. void onCancelPressed()?,
  14. String? customValidation(
    1. String?
    )?,
})

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,
});