PollingDirectoryWatcher constructor
Creates a new polling watcher monitoring directory
.
If pollingDelay
is passed, it specifies the amount of time the watcher
will pause between successive polls of the directory contents. Making this
shorter will give more immediate feedback at the expense of doing more IO
and higher CPU usage. Defaults to one second.
Implementation
PollingDirectoryWatcher(String directory, {Duration? pollingDelay})
: super(directory, () {
return _PollingDirectoryWatcher(
directory, pollingDelay ?? Duration(seconds: 1));
});