DartToolDefinition class

A special kind of tool definition for Dart commands.

Inheritance

Constructors

DartToolDefinition(List<String> command, List<String> setupCommand, String description, ResourceProvider _resourceProvider)

Properties

command List<String>
A list containing the command and options to be run for this tool. The first argument in the command is the tool executable, and will have its path evaluated relative to the dartdoc_options.yaml location. Must not be an empty list, or be null.
final, inherited
description String
A description of the defined tool. Must not be null.
final, inherited
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
setupCommand List<String>
A list containing the command and options to setup phase for this tool. The first argument in the command is the tool executable, and will have its path evaluated relative to the dartdoc_options.yaml location. May be null or empty, in which case it will be ignored at setup time.
final, inherited
setupComplete bool
If set, then the setup command has been run once for this tool definition.
read / write, inherited

Methods

modifyArgsToCreateSnapshotIfNeeded(List<String> args) Future<Tuple2<String, dynamic Function()>>
Takes a list of args to modify, and returns the name of the executable to run. If no snapshot file existed, then create one and modify the args so that if they are executed with dart, will result in the snapshot being built.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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