isDirectory property

bool get isDirectory

检查当前路径是否为目录。

返回一个布尔值,表示当前路径是否为目录。

Implementation

bool get isDirectory {
  return File(filename).statSync().type == FileSystemEntityType.directory;
}