cli_util library Null safety

Utilities to return the Dart SDK location.

Functions

applicationConfigHome(String productName) String
Get the user-specific application configuration folder for the current platform. [...]
getSdkDir([List<String>? cliArgs]) Directory
Return the path to the current Dart SDK. [...]
@Deprecated('Clients should generally prefer getSdkPath()')
getSdkPath() String
Return the path to the current Dart SDK.

Exceptions / Errors

EnvironmentNotFoundException