FastNavigationListView<T extends FastItem> constructor

const FastNavigationListView<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. EdgeInsets padding = EdgeInsets.zero,
  8. bool isViewScrollable = true,
  9. bool showItemDivider = false,
  10. bool showSearchBar = false,
  11. bool sortItems = true,
  12. bool isEnabled = true,
  13. bool showTrailing = true,
  14. bool showLeading = true,
  15. EdgeInsets? itemContentPadding,
  16. FastListItemBuilder<T>? listItemBuilder,
  17. Widget? emptyContent,
  18. String? emptyText,
})

Implementation

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