FastSearchableListView<T extends FastItem> constructor

const FastSearchableListView<T extends FastItem>({
  1. Key? key,
  2. required List<T> items,
  3. ValueChanged<T>? onSelectionChanged,
  4. String searchPlaceholderText = kFastSearchPlaceholderText,
  5. Widget clearSearchIcon = kFastClearSearchIcon,
  6. bool shouldUseFuzzySearch = false,
  7. EdgeInsets padding = EdgeInsets.zero,
  8. int intialCategoryIndex = 0,
  9. bool groupByCategory = false,
  10. bool isViewScrollable = true,
  11. bool showItemDivider = false,
  12. bool showSearchBar = true,
  13. bool sortItems = true,
  14. bool isEnabled = true,
  15. bool showTrailing = true,
  16. bool showLeading = true,
  17. List<FastListItemCategory<T>> extraTabBuilder()?,
  18. EdgeInsets? itemContentPadding,
  19. FastListItemBuilder<T>? listItemBuilder,
  20. String? allCategoryText,
  21. FastListViewLayoutDelegate<T>? delegate,
  22. Widget? emptyContent,
  23. String? emptyText,
})

Implementation

const FastSearchableListView({
  super.key,
  required this.items,
  this.onSelectionChanged,
  this.searchPlaceholderText = kFastSearchPlaceholderText,
  this.clearSearchIcon = kFastClearSearchIcon,
  this.shouldUseFuzzySearch = false,
  this.padding = EdgeInsets.zero,
  this.intialCategoryIndex = 0,
  this.groupByCategory = false,
  this.isViewScrollable = true,
  this.showItemDivider = false,
  this.showSearchBar = true,
  this.sortItems = true,
  this.isEnabled = true,
  this.showTrailing = true,
  this.showLeading = true,
  this.extraTabBuilder,
  this.itemContentPadding,
  this.listItemBuilder,
  this.allCategoryText,
  this.delegate,
  this.emptyContent,
  this.emptyText,
});