getBasedOnMultiQueryEqualsOrderBy method

Future getBasedOnMultiQueryEqualsOrderBy(
  1. String collectionPath,
  2. String field,
  3. String value,
  4. String secField,
  5. bool secValue,
  6. String docID,
)

multi-query based on equals and order....

Implementation

Future getBasedOnMultiQueryEqualsOrderBy(
    String collectionPath,
    String field,
    String value,
    String secField,
    bool secValue,
    String docID) async {
  Constants.fireStoreInstance
      .collection(collectionPath)
      .where(field,isEqualTo: value)
      .orderBy(secField,descending: secValue)
      .snapshots();
}