valuesWithDetails method
Stream<List<NotificationDashboardModel?> >
valuesWithDetails({
- String? orderBy,
- bool? descending,
- Object? startAfter,
- int? limit,
- SetLastDoc? setLastDoc,
- int? privilegeLevel,
- EliudQuery? eliudQuery,
override
Implementation
@override
Stream<List<NotificationDashboardModel?>> valuesWithDetails(
{String? orderBy,
bool? descending,
Object? startAfter,
int? limit,
SetLastDoc? setLastDoc,
int? privilegeLevel,
EliudQuery? eliudQuery}) {
DocumentSnapshot? lastDoc;
Stream<List<NotificationDashboardModel?>> values = getQuery(
notificationDashboardCollection,
orderBy: orderBy,
descending: descending,
startAfter: startAfter as DocumentSnapshot?,
limit: limit,
privilegeLevel: privilegeLevel,
eliudQuery: eliudQuery,
appId: appId)!
.snapshots()
.asyncMap((snapshot) {
return Future.wait(snapshot.docs.map((doc) {
lastDoc = doc;
return _populateDocPlus(doc);
}).toList());
});
if ((setLastDoc != null) && (lastDoc != null)) setLastDoc(lastDoc);
return values;
}