SmartArg class Null safety

Base class for the SmartArg parser.

Your application should extend SmartArg, add public properties, and call the SmartArg.parse() method on your class.

Implementers

Constructors

SmartArg()

Properties

extras List<String>?
List of extras supplied on the command line.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

afterCommandExecute(SmartArgCommand command) → void
Invoked after a command is executed
beforeCommandExecute(SmartArgCommand command) → void
Invoked before a command is executed
beforeCommandParse(SmartArgCommand command, List<String> arguments) → void
Invoked before a command is parsed
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
parse(List<String> arguments) → void
Parse the arguments list populating properties on the SmartArg class.
toString() String
A string representation of this object.
inherited
usage() String
Return a string telling the user how to use your application from the command line.
withEnvironment(Map<String, String> environment) → void
Sets the environment map to be used during argument parsing

Operators

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

Constants

reflectable → const Reflector
Reflector.reflector