AdeptTextAutoComplete<T> constructor
AdeptTextAutoComplete<T> ({
- Key? key,
- AdeptTextAutoCompleteTheme? theme,
- required String label,
- String hintText = "",
- required TextEditingController txtCon,
- required List getList(),
- required String getText(
- T
- required dynamic onChanged(
- T?
- bool isRequired = false,
- EdgeInsets? padding,
- bool filterCondition(
- T,
- String
Constructor allows you to define styling and value properties.
Implementation
AdeptTextAutoComplete(
{super.key,
AdeptTextAutoCompleteTheme? theme,
required this.label,
this.hintText = "",
required this.txtCon,
required this.getList,
required this.getText,
required this.onChanged,
this.isRequired = false,
EdgeInsets? padding,
bool Function(T, String)? filterCondition})
: theme = theme ?? AdeptTextAutoCompleteTheme(),
filterCondition = filterCondition ??
((t, txt) => getText(t).toLowerCase().contains(txt.toLowerCase()));