PubApp class
A Dart command-line application, installed via pub global activate.
Constructors
- PubApp.global(String packageName)
-
Create a new reference to a pub application;
packageNameis the same as the package name.factory - PubApp.local(String packageName)
-
Create a new reference to a pub application;
packageNameis the same as the package name.factory
Properties
- isActivated → bool
-
read-only
- isGlobal → bool
-
read-only
- packageName → String
-
final
- 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
-
activate(
{bool force: false }) → void -
Install the application (run
pub global activate). Settingforceto try will force the activation of the package even if it is already installed. -
run(
List< String> arguments, { String script, RunOptions runOptions, String workingDirectory }) → String - Run the application. If the application is not installed this command will first activate it. [...]
-
runAsync(
List< String> arguments, { String script, RunOptions runOptions }) → Future<String> - Run the application. If the application is not installed this command will first activate it. [...]
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited