copyWith method
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);
}