TemplateFlag class Null safety

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

Constructors

TemplateFlag()
factory

Properties

abbreviation String
abbreviation for the flag.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
hasOption bool
true if the flag has an option.
read-only
isOptionSupported bool
return true if the flag can take a value after an equals sign e.g. -v=/var/log/syslog
read-only
name String
name of the flag
read-only, inherited
option String
override this method if your flag takes an optional argument after an = sign. this method should reutrn the value after the = sign.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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
late, final

Constants

defaultTemplateName → const String
'simple'
flagName → const String
'template'