FastSelectableListView<T extends FastItem> constructor

const FastSelectableListView<T extends FastItem>({
  1. Key? key,
  2. required ValueChanged<T> onSelectionChanged,
  3. required List<T> items,
  4. String searchPlaceholderText = kFastSearchPlaceholderText,
  5. Widget clearSearchIcon = kFastClearSearchIcon,
  6. bool shouldUseFuzzySearch = false,
  7. bool showSearchBar = false,
  8. EdgeInsets padding = EdgeInsets.zero,
  9. bool groupByCategory = false,
  10. bool isViewScrollable = true,
  11. bool showItemDivider = false,
  12. int intialCategoryIndex = 0,
  13. bool sortItems = true,
  14. bool isEnabled = true,
  15. Color? selectionTralingColor,
  16. Color? selectionLabelColor,
  17. EdgeInsets? itemContentPadding,
  18. String? allCategoryText,
  19. List<FastListItemCategory<T>> extraTabBuilder()?,
  20. FastListItemBuilder<T>? listItemBuilder,
  21. Color? selectionColor,
  22. List<FastCategory>? categories,
  23. T? selection,
  24. FastListViewLayoutDelegate<T>? delegate,
  25. Widget? listViewEmptyContent,
  26. 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);