copyWith method

ReleaseStateRecord copyWith({
  1. String? operation,
  2. String? releaseMode,
  3. String? environment,
  4. String? platform,
  5. String? versionName,
  6. String? buildNumber,
  7. String? commitSha,
  8. String? branch,
  9. String? tag,
  10. ReleaseStatus? status,
  11. String? failedStage,
  12. String? artifactPath,
  13. String? artifactChecksum,
  14. List<String>? executedSteps,
  15. List<String>? errors,
  16. List<String>? warnings,
  17. String? timestamp,
  18. int? pid,
})

Implementation

ReleaseStateRecord copyWith({
  String? operation,
  String? releaseMode,
  String? environment,
  String? platform,
  String? versionName,
  String? buildNumber,
  String? commitSha,
  String? branch,
  String? tag,
  ReleaseStatus? status,
  String? failedStage,
  String? artifactPath,
  String? artifactChecksum,
  List<String>? executedSteps,
  List<String>? errors,
  List<String>? warnings,
  String? timestamp,
  int? pid,
}) {
  return ReleaseStateRecord(
    operation: operation ?? this.operation,
    releaseMode: releaseMode ?? this.releaseMode,
    environment: environment ?? this.environment,
    platform: platform ?? this.platform,
    versionName: versionName ?? this.versionName,
    buildNumber: buildNumber ?? this.buildNumber,
    commitSha: commitSha ?? this.commitSha,
    branch: branch ?? this.branch,
    tag: tag ?? this.tag,
    status: status ?? this.status,
    failedStage: failedStage ?? this.failedStage,
    artifactPath: artifactPath ?? this.artifactPath,
    artifactChecksum: artifactChecksum ?? this.artifactChecksum,
    executedSteps: executedSteps ?? this.executedSteps,
    errors: errors ?? this.errors,
    warnings: warnings ?? this.warnings,
    timestamp: timestamp ?? this.timestamp,
    pid: pid ?? this.pid,
  );
}