PaginateFirestore constructor

const PaginateFirestore({
  1. Key? key,
  2. required Widget itemBuilder(
    1. BuildContext,
    2. List<DocumentSnapshot<Object?>>,
    3. int
    ),
  3. required Query<Object?> query,
  4. required PaginateBuilderType itemBuilderType,
  5. SliverGridDelegate gridDelegate = const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
  6. DocumentSnapshot<Object?>? startAfterDocument,
  7. int itemsPerPage = 15,
  8. Widget onError(
    1. Exception
    )?,
  9. void onReachedEnd(
    1. PaginationLoaded
    )?,
  10. void onLoaded(
    1. PaginationLoaded
    )?,
  11. Widget onEmpty = const EmptyDisplay(),
  12. Widget separator = const EmptySeparator(),
  13. Widget initialLoader = const InitialLoader(),
  14. Widget bottomLoader = const BottomLoader(),
  15. bool shrinkWrap = false,
  16. bool reverse = false,
  17. Axis scrollDirection = Axis.vertical,
  18. EdgeInsets padding = const EdgeInsets.all(0),
  19. ScrollPhysics? physics,
  20. List<ChangeNotifier>? listeners,
  21. ScrollController? scrollController,
  22. bool allowImplicitScrolling = false,
  23. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  24. PageController? pageController,
  25. void onPageChanged(
    1. int
    )?,
  26. Widget? header,
  27. Widget? footer,
  28. bool isLive = false,
  29. bool includeMetadataChanges = false,
  30. GetOptions? options,
})

Implementation

const PaginateFirestore({
  Key? key,
  required this.itemBuilder,
  required this.query,
  required this.itemBuilderType,
  this.gridDelegate =
      const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
  this.startAfterDocument,
  this.itemsPerPage = 15,
  this.onError,
  this.onReachedEnd,
  this.onLoaded,
  this.onEmpty = const EmptyDisplay(),
  this.separator = const EmptySeparator(),
  this.initialLoader = const InitialLoader(),
  this.bottomLoader = const BottomLoader(),
  this.shrinkWrap = false,
  this.reverse = false,
  this.scrollDirection = Axis.vertical,
  this.padding = const EdgeInsets.all(0),
  this.physics,
  this.listeners,
  this.scrollController,
  this.allowImplicitScrolling = false,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.pageController,
  this.onPageChanged,
  this.header,
  this.footer,
  this.isLive = false,
  this.includeMetadataChanges = false,
  this.options,
}) : super(key: key);