PaginateFirestore class

Inheritance

Constructors

PaginateFirestore({Key? key, required Widget itemBuilder(BuildContext, List<DocumentSnapshot<Object?>>, int), required Query<Object?> query, required PaginateBuilderType itemBuilderType, SliverGridDelegate gridDelegate = const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2), DocumentSnapshot<Object?>? startAfterDocument, int itemsPerPage = 15, Widget onError(Exception)?, void onReachedEnd(PaginationLoaded)?, void onLoaded(PaginationLoaded)?, Widget onEmpty = const EmptyDisplay(), Widget separator = const EmptySeparator(), Widget initialLoader = const InitialLoader(), Widget bottomLoader = const BottomLoader(), bool shrinkWrap = false, bool reverse = false, Axis scrollDirection = Axis.vertical, EdgeInsets padding = const EdgeInsets.all(0), ScrollPhysics? physics, List<ChangeNotifier>? listeners, ScrollController? scrollController, bool allowImplicitScrolling = false, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, PageController? pageController, void onPageChanged(int)?, Widget? header, Widget? footer, bool isLive = false, bool includeMetadataChanges = false, GetOptions? options})
const

Properties

allowImplicitScrolling bool
final
bottomLoader Widget
final
final
gridDelegate SliverGridDelegate
final
hashCode int
The hash code for this object.
no setterinherited
final
includeMetadataChanges bool
Use this only if isLive = true
final
initialLoader Widget
final
isLive bool
final
itemBuilder Widget Function(BuildContext, List<DocumentSnapshot<Object?>>, int)
final
itemBuilderType PaginateBuilderType
final
itemsPerPage int
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
final
listeners List<ChangeNotifier>?
final
onEmpty Widget
final
onError Widget Function(Exception)?
final
onLoaded → void Function(PaginationLoaded)?
final
onPageChanged → void Function(int)?
final
onReachedEnd → void Function(PaginationLoaded)?
final
options → GetOptions?
Use this only if isLive = false
final
padding EdgeInsets
final
pageController PageController?
final
physics ScrollPhysics?
final
query → Query<Object?>
final
reverse bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
final
scrollDirection Axis
final
separator Widget
final
shrinkWrap bool
final
startAfterDocument → DocumentSnapshot<Object?>?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _PaginateFirestoreState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited