streamChatDataList method

Stream<QuerySnapshot<Object?>> streamChatDataList(
  1. dynamic stCollection,
  2. dynamic groupChatId
)

Implementation

Stream<QuerySnapshot> streamChatDataList(var stCollection, var groupChatId) {
  return FirebaseFirestore.instance
      .collection(stCollection)
      .doc(groupChatId)
      .collection(groupChatId)
      .orderBy('timestamp', descending: true)
      .limit(50)
      .snapshots();
}