watch method
Watch for changes to the files inside this folder (and in any nested folders, including folders reachable via links).
Watchers are initialized asynchronously. Until ResourceWatcher.ready
completes, events are not guaranteed.
Implementation
@override
ResourceWatcher watch() {
final watcher = directory.watch(recursive: true).toAnalyzerStream();
return ResourceWatcher(watcher, () async {});
}