MapInput class

In-memory map input for programmatic invocation (tests, command-from-command).

Implemented types

Constructors

MapInput(Map<String, dynamic> _options, {List<String>? positional, int verbosity = 1, CommandSignature? signature})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verbosity int
Argument verbosity level parsed from -v, -vv, -vvv, -vvvv.
no setteroverride

Methods

argument(Object indexOrName) String?
Get a positional argument by 0-based index OR by name.
override
hasOption(String name) bool
Check whether the option was provided explicitly (vs defaulted).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
option(String name) → dynamic
Get a named option / flag value (returns null if absent).
override
toString() String
A string representation of this object.
inherited

Operators

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