title: how can i stream few messages and add more data when swipe up
body: <p>i am using firebase as backend
  i am trying to create live chat app i can use stream.snapshot() but i want to read the newest 5 msg . and read more data when i swipe up . i can make it done with future and limit the query to 5 mesages and add more data to that query using startAfter(query)  how can i do it in stream
  <a href="https://i.stack.imgur.com/eIkKw.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><code>Stream&lt;QuerySnapshot&lt;Map&lt;String, dynamic&gt;&gt;&gt; messageStream(String? userEmail, String roomId) { return firebaseFirestore .collection(chatsCollection) .doc(roomId) .collection(messagesCollection) .orderBy(timeField, descending: true) .limit(5) .snapshots(); } </code></p>