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
dartexecutable, ornullif no executable could be located.no setter - sdkPath → String?
-
The path to the root of the Dart SDK, or
nullif 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
candidatePathrepresents a valid Dart SDK directory layout.
Exceptions / Errors
- EnvironmentNotFoundException
- Exception thrown if a required environment entry does not exist.