copyWith method
Create a copy with updated fields
Implementation
DocumentCRDT copyWith({
Map<String, int>? versionVector,
Uint8List? content,
String? contentHash,
int? timestamp,
String? contentType,
}) {
return DocumentCRDT(
versionVector: versionVector ?? this.versionVector,
content: content ?? this.content,
contentHash: contentHash ?? this.contentHash,
timestamp: timestamp ?? this.timestamp,
contentType: contentType ?? this.contentType,
);
}