WatchFolder class
Used to manage/monitor a folder containing files with the given extension.
Constructors
- WatchFolder({required String pathTo, required String extension, required OnFolderChanged onChanged, bool recursive = false})
- The file extension to filter what we are interested in. The extension should NOT start with a period.
Properties
- extension ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- onChanged ↔ OnFolderChanged
-
getter/setter pair
- pathTo ↔ String
-
getter/setter pair
- recursive ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscriber
↔ StreamSubscription<
FileSystemEvent> -
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCreateEvent(
FileSystemCreateEvent event) → void -
onDeleteEvent(
FileSystemDeleteEvent event) → void -
onFileSystemEvent(
FileSystemEvent event) → void -
onModifyEvent(
FileSystemModifyEvent event) → void -
onMoveEvent(
FileSystemMoveEvent event) → void -
stop(
) → Future< void> - Call this method to stop watching a folder.
-
toString(
) → String -
A string representation of this object.
inherited
-
watch(
) → Future< void> - Watches the folder for any changes which involve a file ending in .extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited