Open realth000 opened 1 year ago
Hi!
I'm using watcher: ^1.0.2 and I wonder how to close a DirectoryWatcher?
watcher: ^1.0.2
DirectoryWatcher
The close method in the source code can not be used on a DirectoryWatcher object.
close
Also there's no method mentioned in the official document.
Would be nice to know this here too... :)
var watcher = DirectoryWatcher(directory); StreamSubscription subscription = watcher.events.listen((event) { // do stuff }); subscription.cancel();
Hi!
I'm using
watcher: ^1.0.2
and I wonder how to close aDirectoryWatcher
?The
close
method in the source code can not be used on aDirectoryWatcher
object.Also there's no method mentioned in the official document.