copyWith method

COSEHeaderMap copyWith({
  1. COSELabel? algorithmId,
  2. COSELabels? criticality,
  3. COSELabel? contentType,
  4. List<int>? keyId,
  5. List<int>? initVector,
  6. List<int>? partialInitVector,
  7. COSECounterSignature? counterSignature,
  8. Map<COSELabel, CborObject>? otherHeaders,
})

Implementation

COSEHeaderMap copyWith({
  COSELabel? algorithmId,
  COSELabels? criticality,
  COSELabel? contentType,
  List<int>? keyId,
  List<int>? initVector,
  List<int>? partialInitVector,
  COSECounterSignature? counterSignature,
  Map<COSELabel, CborObject<dynamic>>? otherHeaders,
}) {
  return COSEHeaderMap(
      algorithmId: algorithmId ?? this.algorithmId,
      criticality: criticality ?? this.criticality,
      contentType: contentType ?? this.contentType,
      keyId: keyId ?? this.keyId,
      initVector: initVector ?? this.initVector,
      partialInitVector: partialInitVector ?? this.partialInitVector,
      counterSignature: counterSignature ?? this.counterSignature,
      otherHeaders: otherHeaders ?? this.otherHeaders);
}