NiceAutoComplete<T extends Object> constructor

const NiceAutoComplete<T extends Object>({
  1. Key? key,
  2. required Future<List<T>> onSearch(
    1. String query
    ),
  3. required String itemLabel(
    1. T item
    ),
  4. T? value,
  5. String? label,
  6. String? hint,
  7. String? errorText,
  8. bool enabled = true,
  9. int debounceMs = 300,
  10. int minChars = 1,
  11. ValueChanged<T>? onSelected,
  12. Widget itemBuilder(
    1. T item,
    2. bool highlighted
    )?,
  13. 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,
});