TemplateFlag class

Allows a user to select which template to use when creating a project.

Constructors

TemplateFlag()
factory

Properties

abbreviation String
abbreviation for the flag.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasOption bool
true if the flag has an option.
no setter
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 setterinherited
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.
inherited

Static Properties

defaultTemplatePath String
final

Constants

defaultTemplateName → const String
flagName → const String