PubGlobal class

Access the pub global commands.

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

activate(String packageName, {bool force = false}) → void
Install a new Dart application.
isActivated(String packageName) bool
Returns whether the given Dart application is installed.
list() List<PubApp>
Return the list of installed applications.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(String package, {List<String>? arguments, RunOptions? runOptions, String? script, String? workingDirectory}) String
Run the given installed Dart application.
runAsync(String package, {List<String>? arguments, RunOptions? runOptions, String? script}) Future<String>
Run the given installed Dart application.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited