Watcher constructor

Watcher({
  1. required String entryPath,
  2. required bool recursive,
  3. String? lastTag,
})

Implementation

Watcher({
  /// The path of the entry being observed.
  required String entryPath,

  /// Whether watching should include all child entries recursively. It can be
  /// true for directories only.
  required bool recursive,

  /// Tag used by the last notification for the watcher.
  String? lastTag,
}) : _wrapped = $js.Watcher(
        entryPath: entryPath,
        recursive: recursive,
        lastTag: lastTag,
      );