FastSelectField<T> constructor
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,
- String? captionText,
- String? helperText,
- List<
FastCategory> ? categories, - 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);