FastSelectField<T> constructor

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. String? captionText,
  22. String? helperText,
  23. List<FastCategory>? categories,
  24. FastItem<T>? selection,
})

Implementation

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.captionText,
  this.helperText,
  this.categories,
  this.selection,
}) : super(key: key);