getStream method

Future<Stream<List<T>>> getStream()

Implementation

Future<Stream<List<T>>> getStream() async {
  var result = _collection.snapshots();
  return result.map((events) => events.docs.map((e) => fromMap(e.data() as Map)).toList());
}