isDirectory property

bool get isDirectory

If true, the file represents a directory.

Implementation

bool get isDirectory => !isFile;