isWatchSupported property

bool isWatchSupported

Test if watch is supported on the current system.

OS X 10.6 and below is not supported.

Implementation

static bool get isWatchSupported {
  final IOOverrides? overrides = IOOverrides.current;
  if (overrides == null) {
    return _FileSystemWatcher.isSupported;
  }
  return overrides.fsWatchIsSupported();
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/FileSystemEntity/isWatchSupported.html