FastSelectableListView<T extends FastItem> constructor
const
FastSelectableListView<T extends FastItem> ({
- Key? key,
- required ValueChanged<
T> onSelectionChanged, - required List<
T> items, - String searchPlaceholderText = kFastSearchPlaceholderText,
- Widget clearSearchIcon = kFastClearSearchIcon,
- bool shouldUseFuzzySearch = false,
- bool showSearchBar = false,
- EdgeInsets padding = EdgeInsets.zero,
- bool groupByCategory = false,
- bool isViewScrollable = true,
- bool showItemDivider = false,
- int intialCategoryIndex = 0,
- bool sortItems = true,
- bool isEnabled = true,
- Color? selectionTralingColor,
- Color? selectionLabelColor,
- EdgeInsets? itemContentPadding,
- String? allCategoryText,
- List<
FastListItemCategory< extraTabBuilder()?,T> > - FastListItemBuilder<
T> ? listItemBuilder, - Color? selectionColor,
- List<
FastCategory> ? categories, - T? selection,
- FastListViewLayoutDelegate<
T> ? delegate, - Widget? listViewEmptyContent,
- String? listViewEmptyText,
Implementation
const FastSelectableListView({
Key? key,
required this.onSelectionChanged,
required this.items,
this.searchPlaceholderText = kFastSearchPlaceholderText,
this.clearSearchIcon = kFastClearSearchIcon,
this.shouldUseFuzzySearch = false,
this.showSearchBar = false,
this.padding = EdgeInsets.zero,
this.groupByCategory = false,
this.isViewScrollable = true,
this.showItemDivider = false,
this.intialCategoryIndex = 0,
this.sortItems = true,
this.isEnabled = true,
this.selectionTralingColor,
this.selectionLabelColor,
this.itemContentPadding,
this.allCategoryText,
this.extraTabBuilder,
this.listItemBuilder,
this.selectionColor,
this.categories,
this.selection,
this.delegate,
this.listViewEmptyContent,
this.listViewEmptyText,
}) : super(key: key);