FastSelectField<T> constructor
const
FastSelectField<T> ({
- Key? key,
- required ValueChanged<
FastItem< onSelectionChanged,T> ?> - required String labelText,
- required List<
FastItem< items,T> > - String searchPlaceholderText = kFastSearchPlaceholderText,
- String clearSelectionText = kFastClearSelectionText,
- Widget clearSearchIcon = kFastClearSearchIcon,
- String searchTitleText = kFastSelectTitleText,
- bool showHelperBoundaries = true,
- Widget closeIcon = kFastCloseIcon,
- Widget backIcon = kFastBackIcon,
- bool canClearSelection = true,
- int intialCategoryIndex = 0,
- bool groupByCategory = false,
- bool useFuzzySearch = false,
- bool isReadOnly = false,
- bool sortItems = true,
- bool isEnabled = true,
- String? placeholderText,
- String? allCategoryText,
- List<
FastListItemCategory< extraTabBuilder()?,FastItem< >T> > - String? helperText,
- List<
FastCategory> ? categories, - FastListViewLayoutDelegate<
FastItem< ? searchPageDelegate,T> > - FastItem<
T> ? selection, - Widget? listViewEmptyContent,
- String? listViewEmptyText,
- VoidCallback? onSearchPageClose,
- FastFastSelectFieldDelegate<
FastItem< ? delegate,T> >
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);