DartTestCode<T> extension

Extension to attach Dart-specific executable closures (code blocks) to BDD terms.

By importing bdd_dart.dart, these extensions become available on steps like BddGiven, BddWhen, and BddThen, allowing you to define the logic for each step.

on

Methods

code(CodeRun codeRun) → T

Available on BddCodeable<T>, provided by the DartTestCode extension

Attaches a code block that executes within a pure Dart BddContext.