Checks if type(path) returns FileSystemEntityType.directory.
type(path)
FileSystemEntityType.directory
Future<bool> isDirectory(String path);