cli_util library

Utilities to locate the Dart SDK.

Classes

BaseDirectories
The standard system paths for a Dart tool.

Constants

environmentOverridesKey → const Symbol
Zone value key used for testing environment overrides.

Properties

dartExecutable → String?
The path to the dart executable, or null if no executable could be located.
no setter
sdkPath → String?
The path to the root of the Dart SDK, or null if no SDK could be located.
no setter

Functions

applicationConfigHome(String productName) → String
The user-specific application configuration folder for the current platform.
getSdkPath() → String?
Returns the path to the current Dart SDK.
isValidSdkPath(String candidatePath) → bool
Checks whether candidatePath represents a valid Dart SDK directory layout.

Exceptions / Errors

EnvironmentNotFoundException
Exception thrown if a required environment entry does not exist.