isDirectory property

bool isDirectory
latefinal

Whether the file is a directory

Implementation

late final bool isDirectory = (isCollection ?? false) || path.isDirectory;