watch method

  1. @override
Stream<MapEntry<K, V?>> watch({
  1. K? key,
})
override

Watch for changes to this CRDT. Use key to monitor a specific key.

Implementation

@override
Stream<MapEntry<K, V?>> watch({K? key}) =>
    _controller.stream.where((event) => key == null || key == event.key);