EndlessStreamGridViewData<T> constructor

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

Implementation

EndlessStreamGridViewData({
  required this.itemBuilder,
  required this.gridDelegate,
  required double? extentAfterFactor,
  required Widget Function(BuildContext context)? headerBuilder,
  required Widget Function(BuildContext context)? emptyBuilder,
  required Widget Function(BuildContext context)? loadingBuilder,
  required Widget Function(BuildContext context)? loadMoreBuilder,
  required Widget Function(BuildContext context)? footerBuilder,
  required EndlessStateProperty<Widget>? headerBuilderState,
  required EndlessStateProperty<Widget>? emptyBuilderState,
  required EndlessStateProperty<Widget>? loadingBuilderState,
  required EndlessStateProperty<Widget>? loadMoreBuilderState,
  required EndlessStateProperty<Widget>? footerBuilderState,
  required void Function() loadMore,
  required Stream<List<T>> stream,
  required EndlessStreamController<T>? controller,
  required EdgeInsets? padding,
  required bool? loadOnSubscribe,
}) : super(
        extentAfterFactor: extentAfterFactor,
        headerBuilder: headerBuilder,
        emptyBuilder: emptyBuilder,
        loadingBuilder: loadingBuilder,
        loadMoreBuilder: loadMoreBuilder,
        footerBuilder: footerBuilder,
        loadMore: loadMore,
        stream: stream,
        headerBuilderState: headerBuilderState,
        emptyBuilderState: emptyBuilderState,
        loadingBuilderState: loadingBuilderState,
        loadMoreBuilderState: loadMoreBuilderState,
        footerBuilderState: footerBuilderState,
        controller: controller,
        padding: padding,
        loadOnSubscribe: loadOnSubscribe,
      );