# valuesList method Null safety

1. @override

dynamic valuesList(

1. {String? orderBy,
2. bool? descending,
3. Object? startAfter,
4. int? limit,
5. SetLastDoc? setLastDoc,
6. int? privilegeLevel,
7. EliudQuery? eliudQuery}

)
override

## Implementation

    @override
    Future<List<PresentationModel?>> valuesList(
        {String? orderBy,
        bool? descending,
        Object? startAfter,
        int? limit,
        SetLastDoc? setLastDoc,
        int? privilegeLevel,
        EliudQuery? eliudQuery}) async {
      DocumentSnapshot? lastDoc;
      List<PresentationModel?> values = await getQuery(presentationCollection,
              orderBy: orderBy,
              descending: descending,
              startAfter: startAfter as DocumentSnapshot?,
              limit: limit,
              privilegeLevel: privilegeLevel,
              eliudQuery: eliudQuery,
              appId: appId)!
          .get()
          .then((value) {
        var list = value.docs;
        return Future.wait(list.map((doc) {
          lastDoc = doc;
          return _populateDoc(doc);
        }).toList());
      });
      if ((setLastDoc != null) && (lastDoc != null)) setLastDoc(lastDoc);
      return values;
    }