existsSync method

bool existsSync(
  1. String path
)

Synchronously checks whether the file system entity with this path exists.

Implementation

bool existsSync(String path) =>
    typeSync(path, followLinks: false) != FileSystemEntityType.notFound;