ModulaSearchField constructor

const ModulaSearchField({
  1. required void onSearch(
    1. String
    ),
  2. Key? key,
  3. Duration debounceDuration = const Duration(milliseconds: 500),
  4. bool showClearButton = true,
  5. Widget? prefixIcon,
  6. List<String>? filters,
  7. String? selectedFilter,
  8. FilterType filterType = FilterType.chip,
  9. ValueChanged<String>? onFilterChanged,
})

Implementation

const ModulaSearchField({
  required this.onSearch,
  super.key,
  this.debounceDuration = const Duration(milliseconds: 500),
  this.showClearButton = true,
  this.prefixIcon,
  this.filters,
  this.selectedFilter,
  this.filterType = FilterType.chip,
  this.onFilterChanged,
});