Created
September 23, 2020 07:39
-
-
Save 22shubh22/9487864c54443abcaded9d04cea331d5 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
@override | |
Stream<List<Order>> orders(String id) { | |
return ordersCollection.snapshots().map((snapshot) { | |
return snapshot.documents.where((element) => element.data['ordererId']==id) | |
.map((doc) => Order.fromEntity(OrderEntity.fromSnapshot(doc))) | |
.toList(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment