CollectionPagingListener<T extends Document<T> > class
CollectionPagingListener is SnapshotListener + Paging features.
Constructors
-
CollectionPagingListener({required Query<
Map< query, int? initialLimit, int? pagingLimit, required T decode(DocumentSnapshot<String, dynamic> >Map< )})String, dynamic> >
Properties
- count → int
-
no setter
-
data
→ ValueStream<
List< T> > -
no setter
-
decode
→ T Function(DocumentSnapshot<
Map< )String, dynamic> > -
final
-
docChanges
→ Stream<
List< DocumentChangeData< >T> > -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMore → bool
-
no setter
- initialLimit → int?
-
final
- pagingLimit → int?
-
final
-
query
→ Query<
Map< String, dynamic> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - To dispose SnapshotListener.
-
fetch(
) → void - Listen to snapshot from SnapshotListener.
-
loadMore(
) → void - To load next page data using SnapshotListener.
-
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