EndlessStreamListView<T> constructor

const EndlessStreamListView<T>({
  1. required void loadMore(),
  2. required dynamic itemBuilder(
    1. BuildContext context, {
    2. required int index,
    3. required T item,
    4. required int totalItems,
    }),
  3. required Stream<List<T>> stream,
  4. Widget headerBuilder(
    1. BuildContext context
    )?,
  5. void onStateChange(
    1. Set<EndlessState> states
    )?,
  6. EndlessStateProperty? headerBuilderState,
  7. Widget emptyBuilder(
    1. BuildContext context
    )?,
  8. EndlessStateProperty? emptyBuilderState,
  9. Widget loadingBuilder(
    1. BuildContext context
    )?,
  10. EndlessStateProperty? loadingBuilderState,
  11. Widget loadMoreBuilder(
    1. BuildContext context
    )?,
  12. EndlessStateProperty? loadMoreBuilderState,
  13. Widget footerBuilder(
    1. BuildContext context
    )?,
  14. EndlessStateProperty? footerBuilderState,
  15. EndlessStreamController<T>? controller,
  16. ScrollController? scrollController,
  17. EdgeInsets? padding,
  18. ScrollPhysics? physics,
  19. double? extentAfterFactor = 0.4,
  20. bool? loadOnSubscribe = true,
  21. double itemPadding = 0,
  22. 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);