ExternalTool class final

A program found or not, with what installs it.

Constructors

ExternalTool({required String name, required List<String> executables, required String purpose, required String install, List<String> knownLocations = const <String>[], List<String> versionArguments = const <String>['--version']})
The tool name, looked up as executables on PATH and then at knownLocations, asked its version with --version unless told otherwise.
const

Properties

executables → List<String>
The names it goes by on PATH, tried in order.
final
hashCode → int
The hash code for this object.
no setterinherited
install → String
How to get it.
final
knownLocations → List<String>
Where an installer puts it off PATH, tried after it.
final
name → String
What a person calls it.
final
purpose → String
What it is used for, in a sentence.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versionArguments → List<String>
What asks it for its version.
final

Methods

locate({Map<String, String>? environment}) → String?
Where it is, or null when it is not installed.
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