ArgResults class Null safety

The results of parsing a series of command line arguments using ArgParser.parse().

Includes the parsed options and any remaining unparsed command line arguments.

Properties

arguments List<String>
The original arguments that were parsed.
final
command ArgResults?
The command that was selected, or null if none was. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
The name of the command for which these options are parsed, or null if these are the top-level results.
final
options Iterable<String>
The names of the available options. [...]
read-only
rest List<String>
The remaining command-line arguments that were not parsed as options or flags. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
wasParsed(String name) bool
Returns true if the option with name was parsed from an actual argument. [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](String name) → dynamic
Returns the parsed ore default command-line option named name. [...]