existsSync

bool existsSync(

  1. String filePath
)

Check whether a path exists (file or directory).

Implementation

bool existsSync(String filePath) {
  final result = _fs.callMethod('existsSync'.toJS, filePath.toJS);
  if (result == null) return false;
  return (result as JSBoolean).toDart;
}