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