fileExists static method

bool fileExists(
  1. String filePath
)

Check if a file exists at the given path.

Implementation

static bool fileExists(String filePath) {
  return File(filePath).existsSync();
}