isExist property

bool get isExist

检查文件或目录是否存在。

返回一个布尔值,表示文件或目录是否存在。

Implementation

bool get isExist {
  return File(filename).existsSync();
}