watch method

  1. @override
Stream<List<V>> watch()
override

Returns a stream to listen all changes in the storage.

Implementation

@override
Stream<List<V>> watch() => _ensureBox()
    .asStream()
    .switchMap((box) => box)
    .map((map) => map.values.map((e) => e.data).toList());