[英]How to sort stream data in flutter
I want to show all chatroom based on lastmessagetime我想根据 lastmessagetime 显示所有聊天室
How to implement my stream to have sorted chatroom.如何实现我的 stream 对聊天室进行排序。
how to sort following stream如何按照 stream 排序
FirebaseFirestore.instance
.collection("chatrooms").orderBy("lastmessagetime",descending: false).where("participants.${widget.usermodel.uid}", isEqualTo: true).snapshots(),
Could you describe more detail about your problem?你能描述更多关于你的问题的细节吗?
your code,你的代码,
FirebaseFirestore.instance
.collection("chatrooms").orderBy("lastmessagetime",descending: false).where("participants.${widget.usermodel.uid}", isEqualTo: true).snapshots(),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.