isDirectory method

Future<bool> isDirectory(
  1. String path
)

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

Implementation

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