bool isLinkSync(String path)

Synchronously checks if typeSync(path, followLinks: false) returns FileSystemEntityType.LINK.

Source

static bool isLinkSync(String path) =>
    (_getTypeSync(path, false) == FileSystemEntityType.LINK._type);