watchAll<T> method
Emits every value in collection now, and again whenever the
collection changes.
Implementation
@override
Stream<List<T>> watchAll<T>(String collection) {
return guardStream('Failed to watch "$collection"', () async* {
_ensureInitialized();
final box = await _openBox(collection);
yield box.values.cast<T>().toList();
yield* box.watch().map((_) => box.values.cast<T>().toList());
});
}