exists static method

bool exists(
  1. String path
)

Returns whether a file exists at the specified path.

Implementation

static bool exists(String path) {
  return File(path).existsSync();
}