DirectoryWatcher class abstract
Watches the contents of a directory and emits WatchEvents when something in the directory has changed.
- Implemented types
- Implementers
Constructors
- DirectoryWatcher(String directory, {Duration? pollingDelay})
-
Creates a new DirectoryWatcher monitoring
directory
.factory
Properties
- directory → String
-
The directory whose contents are being monitored.
no setter
-
events
→ Stream<
WatchEvent> -
The broadcast Stream of events that have occurred to the watched file or
files in the watched directory.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isReady → bool
-
Whether the watcher is initialized and watching for changes.
no setterinherited
- path → String
-
The path to the file or directory whose contents are being monitored.
no setterinherited
- ready → Future
-
A Future that completes when the watcher is initialized and watching for
changes.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited