EndlessStreamGridView<T> constructor

const EndlessStreamGridView<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 SliverGridDelegate gridDelegate,
  4. required Stream<List<T>> stream,
  5. Widget headerBuilder(
    1. BuildContext context
    )?,
  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. void onStateChange(
    1. Set<EndlessState> states
    )?,
  18. ScrollPhysics? physics,
  19. double? extentAfterFactor = 0.4,
  20. bool? loadOnSubscribe = true,
  21. EdgeInsets? padding = const EdgeInsets.all(0),
  22. 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);