isDirectorySync method Null safety
- String path
Synchronously checks whether path refers to a directory.
Checks whether typeSync(path) returns
FileSystemEntityType.directory.
Implementation
static bool isDirectorySync(String path) =>
    (_getTypeSync(_toUtf8Array(path), true) ==
        FileSystemEntityType.directory);