ready property

  1. @override
Future ready

A Future that completes when the watcher is initialized and watching for changes.

If the watcher is not currently monitoring the file or directory (because there are no subscribers to events), this returns a future that isn't complete yet. It will complete when a subscriber starts listening and the watcher finishes any initialization work it needs to do.

If the watcher is already monitoring, this returns an already complete future.

This future always completes successfully as errors are provided through the events stream.


Future get ready => Future(() {});