copyWith method

DocumentCRDT copyWith({
  1. Map<String, int>? versionVector,
  2. Uint8List? content,
  3. String? contentHash,
  4. int? timestamp,
  5. String? contentType,
})

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,
  );
}