FastSelectField<T> constructor

const FastSelectField<T>({
  1. Key? key,
  2. required ValueChanged<FastItem<T>?> onSelectionChanged,
  3. required List<FastItem<T>> items,
  4. String? labelText,
  5. String? searchPlaceholderText,
  6. String? clearSelectionText,
  7. Widget? clearSearchIcon,
  8. String? searchTitleText,
  9. bool showHelperBoundaries = true,
  10. bool canClearSelection = true,
  11. int intialCategoryIndex = 0,
  12. bool groupByCategory = false,
  13. bool useFuzzySearch = false,
  14. bool isReadOnly = false,
  15. bool sortItems = true,
  16. bool isEnabled = true,
  17. String? placeholderText,
  18. String? allCategoryText,
  19. List<FastListItemCategory<FastItem<T>>> extraTabBuilder()?,
  20. String? captionText,
  21. String? helperText,
  22. List<FastCategory>? categories,
  23. Widget? closeIcon,
  24. Widget? backIcon,
  25. FastListViewLayoutDelegate<FastItem<T>>? searchPageDelegate,
  26. FastItem<T>? selection,
  27. FastEmptyListBuilder<FastItem<T>>? listViewEmptyContentBuilder,
  28. String? listViewEmptyText,
  29. VoidCallback? onSearchPageClose,
  30. FastFastSelectFieldDelegate<FastItem<T>>? delegate,
  31. Widget? icon,
  32. Widget? leading,
  33. String? noneText,
  34. String? noneTextGender,
  35. EdgeInsets? listViewContentPadding,
  36. EdgeInsets? itemContentPadding,
})

Implementation

const FastSelectField({
  super.key,
  required this.onSelectionChanged,
  required this.items,
  this.labelText,
  this.searchPlaceholderText,
  this.clearSelectionText,
  this.clearSearchIcon,
  this.searchTitleText,
  this.showHelperBoundaries = true,
  this.canClearSelection = true,
  this.intialCategoryIndex = 0,
  this.groupByCategory = false,
  this.useFuzzySearch = false,
  this.isReadOnly = false,
  this.sortItems = true,
  this.isEnabled = true,
  this.placeholderText,
  this.allCategoryText,
  this.extraTabBuilder,
  this.captionText,
  this.helperText,
  this.categories,
  this.closeIcon,
  this.backIcon,
  this.searchPageDelegate,
  this.selection,
  this.listViewEmptyContentBuilder,
  this.listViewEmptyText,
  this.onSearchPageClose,
  this.delegate,
  this.icon,
  this.leading,
  this.noneText,
  this.noneTextGender,
  this.listViewContentPadding,
  this.itemContentPadding,
});