CliInvocation class
A parsed command invocation — what the handler receives (FR-003).
Carries the positional arguments, the parsed flags, and a reference to the contract the host app is using (so handlers can build contract-compliant CommandResults without importing the contract directly).
- Annotations
Constructors
-
CliInvocation({required List<
String> arguments, required Map<String, Object?> flags, required CliContract contract}) -
const
Properties
-
arguments
→ List<
String> -
The positional arguments, in declaration order. May be empty.
final
- contract → CliContract
-
The host app's contract.
final
-
flags
→ Map<
String, Object?> -
The parsed flags. Each declared flag is present, with its value (or
nullfor absent boolean flags, or the default value for absent value-taking flags).final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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