watch method
Watch for changes to this file.
Watchers are initialized asynchronously. Until ResourceWatcher.ready
completes, events are not guaranteed.
Implementation
@override
ResourceWatcher watch() {
final watcher = file.watch().toAnalyzerStream();
return ResourceWatcher(watcher, () async {});
}