grinder_sdk library

A library to access tools in the Dart SDK.

Classes

Analyzer
Utility tasks for invoking the analyzer.
Dart
Utility tasks for for getting information about the Dart VM and for running Dart applications.
Dart2js
Utility tasks for invoking dart2js.
DartDoc
Utility class for invoking dartdoc.
DartFmt
Utility class for invoking dartfmt from the SDK. This wrapper requires the dartfmt from SDK 1.9 and greater.
Pub
Utility tasks for executing pub commands.
PubApp
A Dart command-line application, installed via pub global activate.
PubGlobal
Access the pub global commands.

Properties

dartVM File
final
existingSourceDirs Set<Directory>
The subset of directories in sourceDirs which actually exist in the current working directory.
no setter
sdkDir Directory
The path to the current Dart SDK.
final
sourceDirs Set<Directory>
A set of common top-level directories according to the Pub package layout convention which usually contain Dart source code.
final

Functions

getSdkDir([List<String>? cliArgs]) Directory
This is deprecated.
sdkBin(String name) String
Return the path to a binary in the SDK's bin/ directory. This will handle appending .bat or .exe on Windows. This is useful for finding the path to SDK utilities like dartdoc, dart2js, ...