watch method
Implementation
@override
Stream<Map<String, dynamic>?> watch(String dataId, {bool distinct = true}) {
final stream = box
.watch(key: dataId)
.map<Map<String, dynamic>?>(
(event) => event.value == null ? null : Map.from(event.value))
.startWith(get(dataId));
if (distinct) {
return stream.distinct(_jsonEquals);
}
return stream;
}