watchChanges method

Stream<void> watchChanges({
  1. required String key,
})

Implementation

Stream<void> watchChanges({required String key}) async* {
  if (_box == null || !_box!.isOpen) {
    dev.log("Hive box was not initialized!");
    return;
  }
  yield* _box!.watch(key: key);
}