existsSync function

bool existsSync(
  1. String path
)

Returns true if any file or directory exists at path.

Implementation

bool existsSync(String path) {
  return FileSystemEntity.typeSync(path) != FileSystemEntityType.notFound;
}