EndlessStreamListView<T> constructor
const
EndlessStreamListView<T> ({
- required void loadMore(),
- required dynamic itemBuilder(
- BuildContext context, {
- required int index,
- required T item,
- required int totalItems,
- required Stream<
List< stream,T> > - Widget headerBuilder(
- BuildContext context
- void onStateChange(
- Set<
EndlessState> states
- Set<
- EndlessStateProperty? headerBuilderState,
- Widget emptyBuilder(
- BuildContext context
- EndlessStateProperty? emptyBuilderState,
- Widget loadingBuilder(
- BuildContext context
- EndlessStateProperty? loadingBuilderState,
- Widget loadMoreBuilder(
- BuildContext context
- EndlessStateProperty? loadMoreBuilderState,
- EndlessStreamController<
T> ? controller, - ScrollController? scrollController,
- EdgeInsets? padding,
- ScrollPhysics? physics,
- double? extentAfterFactor = 0.4,
- bool? loadOnSubscribe = true,
- double itemPadding = 0,
- dynamic key,
Implementation
const EndlessStreamListView({
required this.loadMore,
required this.itemBuilder,
required this.stream,
this.headerBuilder,
this.onStateChange,
this.headerBuilderState,
this.emptyBuilder,
this.emptyBuilderState,
this.loadingBuilder,
this.loadingBuilderState,
this.loadMoreBuilder,
this.loadMoreBuilderState,
this.footerBuilder,
this.footerBuilderState,
this.controller,
this.scrollController,
this.padding,
this.physics,
this.extentAfterFactor = 0.4,
this.loadOnSubscribe = true,
this.itemPadding = 0,
key,
}) : super(key: key);