discontinuedPackage fluttersdk_artisan has been discontinued and replaced by dowel.

ArtisanInput class abstract

Abstract input layer for ArtisanCommand (Laravel-style).

Three concrete subclasses cover argv-driven, programmatic-map, and programmatic-string invocations. argument accepts either an integer index (positional lookup) OR a String name (resolved against the command's signature). option returns the value of a flag / option declared in the signature.

Implementers

Constructors

ArtisanInput()

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 setter

Methods

argument(Object indexOrName) → String?
Get a positional argument by 0-based index OR by name.
hasOption(String name) → bool
Check whether the option was provided explicitly (vs defaulted).
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).
toString() → String
A string representation of this object.
inherited

Operators

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