OperationHandler
dart
final OperationHandler<Input, Output, Failure> handler =
operation.implement((execution, input) async {
final client = execution.require(apiClientCapability);
return client.apply(
input,
idempotencyKey: execution.context.idempotencyKey,
);
});Operation.implement(...) is the public construction path. Its callback receives an OperationExecution<E> and the typed operation input.
execution.context provides:
runId,commandId,operationKey,attemptidempotencyKeyheartbeat()