EndlessStreamGridView<T> constructor
const
EndlessStreamGridView<T> ({
- required void loadMore(),
- required dynamic itemBuilder(
- BuildContext context, {
- required int index,
- required T item,
- required int totalItems,
- required SliverGridDelegate gridDelegate,
- required Stream<
List< stream,T> > - Widget headerBuilder(
- BuildContext context
- EndlessStateProperty? headerBuilderState,
- Widget emptyBuilder(
- BuildContext context
- EndlessStateProperty? emptyBuilderState,
- Widget loadingBuilder(
- BuildContext context
- EndlessStateProperty? loadingBuilderState,
- Widget loadMoreBuilder(
- BuildContext context
- EndlessStateProperty? loadMoreBuilderState,
- EndlessStreamController<
T> ? controller, - ScrollController? scrollController,
- void onStateChange(
- Set<
EndlessState> states
- Set<
- ScrollPhysics? physics,
- double? extentAfterFactor = 0.4,
- bool? loadOnSubscribe = true,
- EdgeInsets? padding = const EdgeInsets.all(0),
- dynamic key,
Implementation
const EndlessStreamGridView({
required this.loadMore,
required this.itemBuilder,
required this.gridDelegate,
required this.stream,
this.headerBuilder,
this.headerBuilderState,
this.emptyBuilder,
this.emptyBuilderState,
this.loadingBuilder,
this.loadingBuilderState,
this.loadMoreBuilder,
this.loadMoreBuilderState,
this.footerBuilder,
this.footerBuilderState,
this.controller,
this.scrollController,
this.onStateChange,
this.physics,
this.extentAfterFactor = 0.4,
this.loadOnSubscribe = true,
this.padding = const EdgeInsets.all(0),
key,
}) : super(key: key);