Flag class abstract

base class for command line flags (--name, -v ...)

Constructors

Flag(String _name)
const

Properties

abbreviation String
abbreviation for the flag.
no setter
hashCode int
The hash code for this object.
no setteroverride
isOptionSupported bool
return true if the flag can take a value after an equals sign e.g. -v=/var/log/syslog
no setter
name String
name of the flag
no setter
option String?
override this method if your flag takes an optional argument after an = sign. this method should reutrn the value after the = sign.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

description() String
Flag implementations must overload this to return a description of the flag used in the usage statement.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
usage() String
returns the usage for this flag

Operators

operator ==(covariant Flag other) bool
The equality operator.
override