Operation constructor

Operation({
  1. required OperationKind kind,
  2. required String logicalPath,
  3. required String contentHash,
  4. required OwnershipClass ownershipClass,
  5. 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'),
         );