isFile static method

bool isFile(
  1. String pathString
)

Checks if a path exists and is a file.

Implementation

static bool isFile(String pathString) {
  try {
    return File(pathString).existsSync();
  } catch (e) {
    return false;
  }
}