CommandTask<T> class abstract

Abstract class representing a command task.

Implementers

Constructors

CommandTask()

Properties

clear → bool
Indicating whether to clear the console after execution.
no setter
failedHint → String?
no setter
failedTag → String
final
hashCode → int
The hash code for this object.
no setterinherited
prompt → String
The prompt message for the task.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
successHint → String?
no setter
successTag → String
final

Methods

execute(LoaderState state) → Future<T?>
Method to execute the task. Must be overridden by subclasses.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run({bool? clear, bool? throwOnError, dynamic onError(Object)?, StyleFunction? prompt, StyleFunction? successHint, StyleFunction? failedHint, StyleFunction? successTag, StyleFunction? failedTag}) → Future<T?>
Runs the task with optional parameters for customization.
toString() → String
A string representation of this object.
inherited

Operators

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