NiceAutoComplete<T extends Object> constructor
const
NiceAutoComplete<T extends Object>({ - Key? key,
- required Future<List<T>> onSearch(
- String query
),
- required String itemLabel(
- T item
),
- T? value,
- String? label,
- String? hint,
- String? errorText,
- bool enabled = true,
- int debounceMs = 300,
- int minChars = 1,
- ValueChanged<T>? onSelected,
- Widget itemBuilder(
- T item,
- bool highlighted
)?,
- int maxSuggestions = 20,
})
Implementation
const NiceAutoComplete({
super.key,
required this.onSearch,
required this.itemLabel,
this.value,
this.label,
this.hint,
this.errorText,
this.enabled = true,
this.debounceMs = 300,
this.minChars = 1,
this.onSelected,
this.itemBuilder,
this.maxSuggestions = 20,
});