PubApp class abstract
A Dart command-line application, installed via pub global activate
.
Constructors
- PubApp.global(String packageName)
-
Create a new reference to a pub application;
packageName
is the same as the package name.factory - PubApp.local(String packageName)
-
Create a new reference to a pub application;
packageName
is the same as the package name.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActivated → bool
-
no setter
- isGlobal → bool
-
no setter
- packageName → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
activate(
{bool force = false}) → void -
Install the application (run
pub global activate
). Settingforce
to try will force the activation of the package even if it is already installed. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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 -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited