TargetResult class

Outcome of building one target. Serialised so a worker process can hand its results to the parent of a parallel build.

Constructors

TargetResult({required String client, required BuildTarget target, required bool success, bool skipped = false, String? version, Duration duration = Duration.zero, String? artifact, String? error, Object? cause, String? logPath})
TargetResult.fromJson(Map<String, dynamic> json)
factory
TargetResult.skipped(String client, BuildTarget target, {String? reason})
factory

Properties

artifact → String?
final
cause → Object?
The original exception, for single builds that rethrow it. Not serialised.
final
client → String
final
duration → Duration
final
error → String?
final
failed → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
logPath → String?
Worker log for parallel builds.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skipped → bool
final
success → bool
final
target → BuildTarget
final
version → String?
final

Methods

copyWith({String? artifact, String? logPath}) → TargetResult
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

readAll(File file) → List<TargetResult>
writeAll(File file, List<TargetResult> results) → void