LiveTargetSelection<T> class
The apps a live command should run on, or why none were picked.
Constructors
-
LiveTargetSelection.error(String? error, int exitCode, {List<
T> candidates = const []}) -
A failed selection with an
errormessage andexitCode.candidateslists the apps worth showing alongside the message.const -
LiveTargetSelection.targets(List<
T> targets) -
A successful selection of
targets.const
Properties
-
candidates
→ List<
T> -
Apps to list with the error so the user can pick one.
final
- error → String?
-
Why no apps were selected, or null on success.
final
- exitCode → int
-
0on success,1when nothing matched,2when the choice is ambiguous.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isSuccess → bool
-
Whether targets were selected.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
targets
→ List<
T> -
The apps to run the command on.
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