onSnapshots method
Get a stream of a record snapshots from the database.
It allows listening to multiple records. First emit happens when all snapshot are checked first (but can be null).
Implementation
Stream<List<RecordSnapshot<K, V>?>> onSnapshots(Database database) {
return streamJoinAll(refs.map((e) => e.onSnapshot(database)).toList());
}