CarpenterAsyncSearchField<T> constructor
const
CarpenterAsyncSearchField<T> ({
- Key? key,
- required CarpenterSuggestionLoader<
T> load, - required String title(
- T item
- required ValueChanged<
T?> onSelected, - String subtitle(
- T item
- Object? selected,
- String? selectedLabel,
- ValueChanged<
String> ? onQueryChanged, - String? placeholder,
- String? error,
- Duration debounce = const Duration(milliseconds: 300),
- int minimumQueryLength = 1,
- 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,
});