ShellParameter class

Description of a parameter for a shell script

Constructors

ShellParameter({required String flag, required String name, bool required = false, String? defaultValue, ParameterType type = ParameterType.value})
Creates a ShellParameter with the specified properties.
const

Properties

defaultValue → String?
Default value
final
flag → String
Parameter flag (e.g., 'f' for -f)
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Parameter name in the Dart method
final
required → bool
Whether the parameter is required
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → ParameterType
Parameter type (flag, value)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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