CliResolution class

An invocation that matched a route.

Inheritance

Constructors

CliResolution({required CliRoute route, required Map<String, String> params, required List<String> rest, required List<ParsedOption> options, required CliHandler handler})
const

Properties

handler → CliHandler
The handler registered for route.
final
hashCode → int
The hash code for this object.
no setterinherited
options → List<ParsedOption>
Every option read on the invocation, in argv order, exactly as written.
final
params → Map<String, String>
Bound values for every positional parameter the route declares that was actually present on the invocation (the trailing optional one may be absent).
final
rest → List<String>
Operands collected by a trailing * wildcard, in order; empty for a route with no wildcard.
final
route → CliRoute
The route that matched.
final
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