Operation constructor
Operation({
- required OperationKind kind,
- required String logicalPath,
- required String contentHash,
- required OwnershipClass ownershipClass,
- String? idempotencyKey,
Implementation
Operation({
required this.kind,
required String logicalPath,
required this.contentHash,
required this.ownershipClass,
String? idempotencyKey,
}) : logicalPath = requireLogicalPath(logicalPath),
idempotencyKey =
idempotencyKey ??
computeRawHash(
utf8.encode('${kind.name}:$logicalPath:$contentHash'),
);