getAllDocsByStream<T> method
get all documents in this collection by stream
Implementation
Stream<List<FireDocTuple<T>>> getAllDocsByStream<T>({
T Function(Map<String, dynamic>)? cast,
}) =>
_reference.snapshots().map((event) {
return event.docs
.map(
(e) => FireDocTuple<T>(
e,
cast ?? (d) => d as T,
),
)
.toList();
});