watchRecursive method

void watchRecursive({
  1. required void onData(
    1. FileSystemEvent fileSystemEvent
    ),
  2. bool recursive = false,
  3. bool followLinks = true,
})

watch recursive

Implementation

void watchRecursive({
  required void Function(FileSystemEvent fileSystemEvent) onData,
  bool recursive = false,
  bool followLinks = true,
}) {
  watch().listen(onData);

  listSync().watchRecursive(onData: onData);
  return;
}