How to access query from itemBuilder?
问题 I am make random chat app use FirestoreAnimatedList (FirebaseAnimatedList for Firestore). I want show user avatar only one time if same user send many message so not have same avatar show many time. My solution is use index for check if last message send by same user. So I need check like : if (snapshot[index - 1][‘user’] == user) { return true; } But my snapshot is DocumentSnapshot so cannot call [index - 1] . Maybe I must get list from query ? How to access so can call index on list and