Executable class

Defines an executable listed in the 'exectuables' section of the pubspec.yaml.

Once the package is activated using pub global activate each of the executables listed in the pubspec.yaml will be exectuable. The name is the name of the executable you run from the cli. The optional script is the name of the dart library in the bin directory. If the script isn't supplied this defaults to name; typing

Constructors

Executable(String? script)
Executable.fromJson(String? script)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script String?
getter/setter pair
scriptPath String
returns the project relative path to the script.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toString() String
A string representation of this object.
inherited

Operators

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