Created
June 10, 2022 06:51
-
-
Save harsh1772/27d6946abfb1153b9850b641f0c95977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stream<QuerySnapshot<Object?>> getSuggestion(String suggestion, context) { | |
SellerModel? sellerModel = | |
Provider.of<UserProvider>(context, listen: false).sellerModel; | |
return seller_agreement_listing | |
.orderBy('itemName', descending: false) | |
.where('userId', isEqualTo: sellerModel!.uid) | |
.where('itemName', isGreaterThanOrEqualTo: suggestion) | |
.where('itemName', isLessThan: suggestion + 'z') | |
// .limit(limitOfRetrievedData!) | |
.snapshots(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment