SourceWatcher.config constructor

  1. @visibleForTesting
SourceWatcher.config({
  1. required String dirPath,
  2. required DirectoryWatcher watcher,
  3. Iterable<String> excludePaths = const [],
})

allows to set the watcher to be used only for testing

Implementation

@visibleForTesting
SourceWatcher.config({
  required this.dirPath,
  required DirectoryWatcher watcher,
  this.excludePaths = const [],
}) : _watcher = watcher;