CollectionPageController class
A controller that triggers the positioning and state of a
CollectionWidget while also holding data related to the
current positioning of a CollectionWidget.
A CollectionPageController is required for pagination to
work with a CollectionWidget.
Note: Do not create an instance of this class inside
your Widget.build() method.
Constructors
- CollectionPageController()
-
A controller that triggers the positioning and state of a
CollectionWidgetwhile also holding data related to the current positioning of aCollectionWidget.
Properties
-
controller
→ StreamController<
PageControllerDirection> -
The
StreamControllerfor thisCollectionPageController.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isAtEnd → dynamic
-
Indicates if we're at the end of the queried documents.
no setter
- isAtStart → dynamic
-
Indicates if we're at the start of the queried documents.
no setter
- next → dynamic
-
Moves offset position forward and gets the next page of documents.
no setter
- previous → dynamic
-
Moves offset position backward and gets the previous page of documents.
no setter
- refresh → dynamic
-
Refreshes documents for the current page.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited