ShellTask<T> class abstract

Inheritance
Implementers

Constructors

ShellTask(String executable, List<String> arguments, {String? workingDirectory})

Properties

arguments → List<String>
final
executable → String
final
fullCommand → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String
unique task id (UUID v1 time based)
finalinherited
isCancelled → bool
no setterinherited
isCompleted → bool
no setterinherited
isFailed → bool
no setterinherited
isIdle → bool
no setterinherited
isPending → bool
no setterinherited
isRunning → bool
no setterinherited
name → String
no setterinherited
result ↔ TaskResult<T, T>?
The result of the task if completed Contains the value, error and stack trace
getter/setter pairinherited
resultAsync → Future<T?>
The result of the task as a future
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → TaskStatus
The current status of the task
no setterinherited
workingDirectory → String?
final

Methods

cancel() → void
Manually cancel the task
inherited
execute() → Future<T>
The logic to execute the task. Shouldn't be called directly but rather through run
override
handleResult(ProcessResult result) → T
isErrorOfType(Type type) → bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run({OnTaskEvent? onEvent}) → CancelableOperation<T>
Runs the task operation and returns the result
inherited
toString() → String
A string representation of this object.
inherited

Operators

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