FastSelectField<T> constructor

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

Implementation

const FastSelectField({
  Key? key,
  required this.onSelectionChanged,
  required this.labelText,
  required this.items,
  this.searchPlaceholderText = kFastSearchPlaceholderText,
  this.clearSelectionText = kFastClearSelectionText,
  this.clearSearchIcon = kFastClearSearchIcon,
  this.searchTitleText = kFastSelectTitleText,
  this.showHelperBoundaries = true,
  this.closeIcon = kFastCloseIcon,
  this.backIcon = kFastBackIcon,
  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.searchPageDelegate,
  this.selection,
  this.listViewEmptyContent,
  this.listViewEmptyText,
  this.onSearchPageClose,
  this.delegate,
}) : super(key: key);