CarpenterAsyncSearchField<T> constructor

const CarpenterAsyncSearchField<T>({
  1. Key? key,
  2. required CarpenterSuggestionLoader<T> load,
  3. required String title(
    1. T item
    ),
  4. required ValueChanged<T?> onSelected,
  5. String subtitle(
    1. T item
    )?,
  6. Object? selected,
  7. String? selectedLabel,
  8. ValueChanged<String>? onQueryChanged,
  9. String? placeholder,
  10. String? error,
  11. Duration debounce = const Duration(milliseconds: 300),
  12. int minimumQueryLength = 1,
  13. double maxSuggestionHeight = 240,
})

Implementation

const CarpenterAsyncSearchField({
  super.key,
  required this.load,
  required this.title,
  required this.onSelected,
  this.subtitle,
  this.selected,
  this.selectedLabel,
  this.onQueryChanged,
  this.placeholder,
  this.error,
  this.debounce = const Duration(milliseconds: 300),
  this.minimumQueryLength = 1,
  this.maxSuggestionHeight = 240,
});