watcher property

  1. @override
SourceWatcher get watcher
override

the file system watcher for the brick

This is used to watch the brick's source directory/files and trigger a re-cook when changes are detected

Implementation

@override
SourceWatcher get watcher => _watcher ??= SourceWatcher(
      sourcePath,
      excludePaths: [
        ...?exclude,
        if (outputDir != '.') outputDir,
      ],
    );