then<Next> method

CryptoFlow<Next> then<Next>(
  1. CryptoStep<Current, Next> step
)

Appends a package-defined step whose input matches the current flow type.

The returned flow is a fresh single-use instance. This flow remains independently runnable.

Implementation

CryptoFlow<Next> then<Next>(CryptoStep<Current, Next> step) =>
    CryptoFlow<Next>._(_source, [
      ..._stages,
      _ErasedStage.fromStep<Current, Next>(step),
    ]);