isDirectory method

Future<bool> isDirectory (String path)

Checks if type(path) returns io.FileSystemEntityType.DIRECTORY.

Implementation

Future<bool> isDirectory(String path) async =>
    await type(path) == io.FileSystemEntityType.directory;