ready property

  1. @override
Future ready
override

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.

Implementation

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