TListView<T, K> constructor
const
TListView<T, K> ({
- Key? key,
- required List<
TListItem< items,T, K> > - TListError? error,
- bool headerSticky = false,
- TListHeaderBuilder? headerBuilder,
- bool loading = false,
- TListLoadingBuilder? loadingBuilder,
- bool infiniteScroll = false,
- TListErrorBuilder? errorStateBuilder,
- TListEmptyBuilder? emptyStateBuilder,
- required ListItemBuilder<
T, K> itemBuilder, - TListSeparatorBuilder? listSeparatorBuilder,
- EdgeInsets? padding,
- bool reorderable = false,
- TListDragProxyDecorator? dragProxyDecorator,
- TListReorderCallback? onReorder,
- TGridMode? grid,
- TGridDelegateBuilder? gridDelegate,
- double? height,
- bool shrinkWrap = false,
- 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.");