Pub class
Utility tasks for executing pub commands.
Constructors
- Pub()
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Properties
Static Methods
-
build(
{String mode, List< String> directories, RunOptions runOptions, String outputDirectory, String workingDirectory }) → void -
Run
pub buildon the current project. [...] -
buildAsync(
{String mode, List< String> directories, RunOptions runOptions, String outputDirectory, String workingDirectory }) → Future -
Run
pub buildon the current project. [...] -
downgrade(
{RunOptions runOptions, String workingDirectory }) → void -
Run
pub downgradeon the current project. -
downgradeAsync(
{RunOptions runOptions, String workingDirectory }) → Future -
Run
pub downgradeon the current project. -
get(
{bool force: false, RunOptions runOptions, String workingDirectory }) → void -
Run
pub geton the current project. Ifforceis true, this will execute even if the pubspec.lock file is up-to-date with respect to the pubspec.yaml file. -
getAsync(
{bool force: false, RunOptions runOptions, String workingDirectory }) → Future -
Run
pub geton the current project. Ifforceis true, this will execute even if the pubspec.lock file is up-to-date with respect to the pubspec.yaml file. -
run(
String package, { List< String> arguments, RunOptions runOptions, String script, String workingDirectory }) → String -
Run
pub runon the givenpackageandscript. [...] -
runAsync(
String package, { List< String> arguments, RunOptions runOptions, String script }) → Future<String> -
Run
pub runon the givenpackageandscript. [...] -
upgrade(
{RunOptions runOptions, String workingDirectory }) → void -
Run
pub upgradeon the current project. -
upgradeAsync(
{RunOptions runOptions, String workingDirectory }) → Future -
Run
pub upgradeon the current project. -
version(
{bool quiet: false }) → String