watcher 0.9.7+12

A file system watcher.

It monitors changes to contents of directories and sends notifications when files have been added, removed, or modified.

0.9.7+12 #

  • Catch FileSystemException during existsSync() on Windows.
  • Internal cleanup.

0.9.7+11 #

  • Fix an analysis hint.

0.9.7+10 #

  • Set max SDK version to <3.0.0, and adjust other dependencies.

0.9.7+9 #

  • Internal changes only.

0.9.7+8 #

  • Fix Dart 2.0 type issues on Mac and Windows.

0.9.7+7 #

  • Updates to support Dart 2.0 core library changes (wave 2.2). See issue 31847 for details.

0.9.7+6 #

  • Internal changes only, namely removing dep on scheduled test.

0.9.7+5 #

  • Fix an analysis warning.

0.9.7+4 #

  • Declare support for async 2.0.0.

0.9.7+3 #

  • Fix a crashing bug on Linux.

0.9.7+2 #

  • Narrow the constraint on async to reflect the APIs this package is actually using.

0.9.7+1 #

  • Fix all strong-mode warnings.

0.9.7 #

  • Fix a bug in FileWatcher where events could be added after watchers were closed.

0.9.6 #

  • Add a Watcher interface that encompasses watching both files and directories.

  • Add FileWatcher and PollingFileWatcher classes for watching changes to individual files.

  • Deprecate Use DirectoryWatcher.path instead.

0.9.5 #

  • Fix bugs where events could be added after watchers were closed.

0.9.4 #

  • Treat add events for known files as modifications instead of discarding them on Mac OS.

0.9.3 #

  • Improved support for Windows via WindowsDirectoryWatcher.

  • Simplified PollingDirectoryWatcher.

  • Fixed bugs in MacOSDirectoryWatcher

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  watcher: ^0.9.7+12

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:watcher/watcher.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Sep 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21


Detected platforms: Flutter, other

Primary library: package:watcher/watcher.dart with components: io.

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and watcher.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
async >=1.10.0 <3.0.0 2.3.0
path >=0.9.0 <2.0.0 1.6.4
pedantic ^1.1.0 1.8.0+1
Transitive dependencies
collection 1.14.12
Dev dependencies
benchmark_harness ^1.0.4
test >=0.12.42 <2.0.0
test_descriptor ^1.0.0