FastSelectableListView<T extends FastItem> constructor

FastSelectableListView<T extends FastItem>({
  1. Key? key,
  2. required ValueChanged<T> onSelectionChanged,
  3. required List<T> items,
  4. String searchPlaceholderText = kFastSearchPlaceholderText,
  5. Icon 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. FastListItemBuilder<T>? listItemBuilder,
  20. Color? selectionColor,
  21. List<FastCategory>? categories,
  22. T? selection,
})

Implementation

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