EndlessStreamScrollViewData<T> constructor
EndlessStreamScrollViewData<T> ({
- required ScrollController? scrollController,
- required double? extentAfterFactor,
- required void loadMore(),
- required Stream<
List< stream,T> > - required EndlessStateProperty? headerBuilderState,
- required EndlessStateProperty? emptyBuilderState,
- required EndlessStateProperty? loadingBuilderState,
- required EndlessStateProperty? loadMoreBuilderState,
- required Widget headerBuilder(
- BuildContext context
- required Widget emptyBuilder(
- BuildContext context
- required Widget loadingBuilder(
- BuildContext context
- required Widget loadMoreBuilder(
- BuildContext context
- required EndlessStreamController<
T> ? controller, - required EdgeInsets? padding,
- required bool? loadOnSubscribe,
- required void onStateChange(
- Set<
EndlessState> states
- Set<
- 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;
}