EndlessStreamScrollViewData<T> constructor

EndlessStreamScrollViewData<T>({
  1. required ScrollController? scrollController,
  2. required double? extentAfterFactor,
  3. required void loadMore(),
  4. required Stream<List<T>> stream,
  5. required EndlessStateProperty? headerBuilderState,
  6. required EndlessStateProperty? emptyBuilderState,
  7. required EndlessStateProperty? loadingBuilderState,
  8. required EndlessStateProperty? loadMoreBuilderState,
  9. required EndlessStateProperty? footerBuilderState,
  10. required Widget headerBuilder(
    1. BuildContext context
    )?,
  11. required Widget emptyBuilder(
    1. BuildContext context
    )?,
  12. required Widget loadingBuilder(
    1. BuildContext context
    )?,
  13. required Widget loadMoreBuilder(
    1. BuildContext context
    )?,
  14. required Widget footerBuilder(
    1. BuildContext context
    )?,
  15. required EndlessStreamController<T>? controller,
  16. required EdgeInsets? padding,
  17. required bool? loadOnSubscribe,
  18. required void onStateChange(
    1. Set<EndlessState> states
    )?,
  19. required ScrollPhysics? physics,
})

Implementation

EndlessStreamScrollViewData({
  required this.scrollController,
  required this.extentAfterFactor,
  required this.loadMore,
  required this.stream,
  required this.headerBuilderState,
  required this.emptyBuilderState,
  required this.loadingBuilderState,
  required this.loadMoreBuilderState,
  required this.footerBuilderState,
  required this.headerBuilder,
  required this.emptyBuilder,
  required this.loadingBuilder,
  required this.loadMoreBuilder,
  required this.footerBuilder,
  required this.controller,
  required this.padding,
  required this.loadOnSubscribe,
  required this.onStateChange,
  required this.physics,
}) {
  padding ??= EdgeInsets.zero;
  loadOnSubscribe ??= false;
  extentAfterFactor ??= 0.4;
}