TListView<T, K> constructor

const TListView<T, K>({
  1. Key? key,
  2. required List<TListItem<T, K>> items,
  3. TListError? error,
  4. bool headerSticky = false,
  5. TListHeaderBuilder? headerBuilder,
  6. bool footerSticky = false,
  7. TListFooterBuilder? footerBuilder,
  8. bool loading = false,
  9. TListLoadingBuilder? loadingBuilder,
  10. bool infiniteScroll = false,
  11. TListFooterBuilder? infiniteScrollFooterBuilder,
  12. TListErrorBuilder? errorStateBuilder,
  13. TListEmptyBuilder? emptyStateBuilder,
  14. required ListItemBuilder<T, K> itemBuilder,
  15. TListSeparatorBuilder? listSeparatorBuilder,
  16. EdgeInsets? padding,
  17. bool reorderable = false,
  18. TListDragProxyDecorator? dragProxyDecorator,
  19. TListReorderCallback? onReorder,
  20. TGridMode? grid,
  21. TGridDelegateBuilder? gridDelegate,
  22. double? height,
  23. bool shrinkWrap = false,
  24. ScrollController? scrollController,
})

Creates a list view.

Implementation

const TListView({
  super.key,
  required this.items,
  this.error,
  this.headerSticky = false,
  this.headerBuilder,
  this.footerSticky = false,
  this.footerBuilder,
  this.loading = false,
  this.loadingBuilder,
  this.infiniteScroll = false,
  this.infiniteScrollFooterBuilder,
  this.errorStateBuilder,
  this.emptyStateBuilder,
  required this.itemBuilder,
  this.listSeparatorBuilder,
  this.padding,
  this.reorderable = false,
  this.dragProxyDecorator,
  this.onReorder,
  this.grid,
  this.gridDelegate,
  this.height,
  this.shrinkWrap = false,
  this.scrollController,
}) : assert(grid == null || !reorderable, "GridView does not support item reordering.");