isDirectorySync method Null safety

bool isDirectorySync (
  1. String path
)

Synchronously checks if typeSync(path) returns FileSystemEntityType.directory.

Implementation

static bool isDirectorySync(String path) =>
    (_getTypeSync(_toUtf8Array(path), true) ==
        FileSystemEntityType.directory);