DVWorkerResult<O> class final

The answer to one DV.Workers.run.

Constructors

DVWorkerResult.completed(O _value, DVWorkerMechanism mechanism)
const
DVWorkerResult.ended(DVWorkerOutcome outcome, DVWorkerMechanism mechanism, {required Object error, StackTrace? stackTrace})
const

Properties

error → Object?
Why there is no value: what the task threw, or a DVWorkerFailure.
final
hashCode → int
The hash code for this object.
no setterinherited
isCompleted → bool
no setter
mechanism → DVWorkerMechanism
final
outcome → DVWorkerOutcome
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
Where it was thrown, on the worker, when known.
final
value → O
The value, or the reason there is none, thrown.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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