copyWith method

TargetResult copyWith({
  1. String? artifact,
  2. String? logPath,
})

Implementation

TargetResult copyWith({String? artifact, String? logPath}) => TargetResult(
      client: client,
      target: target,
      success: success,
      skipped: skipped,
      version: version,
      duration: duration,
      artifact: artifact ?? this.artifact,
      error: error,
      cause: cause,
      logPath: logPath ?? this.logPath,
    );