addStep<StepInput, StepOutput> method

void addStep<StepInput, StepOutput>(
  1. ChainStep<StepInput, StepOutput> step
)

Adds a step to the chain

Validates type compatibility with previous step

Implementation

void addStep<StepInput, StepOutput>(ChainStep<StepInput, StepOutput> step) {
  _validateStepTypes(step);
  _steps.add(step);
}