EndlessStreamScrollViewData<T> constructor

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

Implementation

EndlessStreamScrollViewData({
  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,
}) {
  padding ??= EdgeInsets.zero;
  loadOnSubscribe ??= false;
  extentAfterFactor ??= 0.4;
}