Pub class
Utility tasks for executing pub commands.
Constructors
- Pub()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
build(
{String? mode, List< String> ? directories, RunOptions? runOptions, String? outputDirectory, String? workingDirectory}) → void -
Run
pub build
on the current project. -
buildAsync(
{String? mode, List< String> ? directories, RunOptions? runOptions, String? outputDirectory, String? workingDirectory}) → Future -
Run
pub build
on the current project. -
downgrade(
{RunOptions? runOptions, String? workingDirectory}) → void -
Run
pub downgrade
on the current project. -
downgradeAsync(
{RunOptions? runOptions, String? workingDirectory}) → Future -
Run
pub downgrade
on the current project. -
get(
{bool force = false, RunOptions? runOptions, String? workingDirectory}) → void -
Run
pub get
on the current project. Ifforce
is 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 get
on the current project. Ifforce
is 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 run
on the givenpackage
andscript
. -
runAsync(
String package, {List< String> ? arguments, RunOptions? runOptions, String? script}) → Future<String> -
Run
pub run
on the givenpackage
andscript
. -
upgrade(
{RunOptions? runOptions, String? workingDirectory}) → void -
Run
pub upgrade
on the current project. -
upgradeAsync(
{RunOptions? runOptions, String? workingDirectory}) → Future -
Run
pub upgrade
on the current project.