execute method

Future<void> execute(
  1. TestOperation operation
)

Implementation

Future<void> execute(TestOperation operation) async {
  final descriptor = operationRegistry.requireDescriptor(
    operation,
    expectedKind: OperationKind.interaction,
  );
  final handled = await executor.executeRegisteredInteraction(
    operation,
    descriptor: descriptor,
  );
  if (!handled) {
    throw StateError(
      'No local action is registered for "${descriptor.handlerKey}".',
    );
  }
}