SearchableTextField<T> constructor

const SearchableTextField<T>({
  1. Key? key,
  2. Future<List<T>> onChanged(
    1. String
    )?,
  3. TextEditingController? controller,
  4. String? validator(
    1. String?
    )?,
  5. double borderRaduis = 10,
  6. Widget? prefix,
  7. EdgeInsetsDirectional? margin,
  8. String? hint,
  9. InputBorder? inputBorder,
  10. required List<T> items,
  11. required ValueChanged<T> onSubmit,
  12. required String itemToString(
    1. T
    ),
  13. String? label,
  14. T? defaultValue,
  15. InputDecoration? decoration,
})

Implementation

const SearchableTextField({
  Key? key,
  this.onChanged,
  this.controller,
  this.validator,
  this.borderRaduis = 10,
  this.prefix,
  this.margin,
  this.hint,
  this.inputBorder,
  required this.items,
  required this.onSubmit,
  required this.itemToString,
  this.label,
  this.defaultValue,
  this.decoration,
}) : super(key: key);