CliOption class

Annotate fields to configure the generated ArgParser helpers.

Constructors

CliOption({String? name, String? abbr, Object? defaultsTo, String? help, String? valueHelp, List<Object>? allowed, bool? negatable, Map<Object, String>? allowedHelp, bool? hide, dynamic convert(String)?, bool provideDefaultToOverride = false})
const

Properties

abbr String?
final
allowed List<Object>?
final
allowedHelp Map<Object, String>?
final
convert → (dynamic Function(String)?)
A top-level Function that converts an option value into the destination type.
final
defaultsTo Object?
final
hashCode int
The hash code for this object.
no setterinherited
help String?
final
hide bool?
final
name String?
final
negatable bool?
final
provideDefaultToOverride bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valueHelp String?
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