onBeforeStep method

  1. @override
Future<void> onBeforeStep(
  1. World world,
  2. String step
)

Run before a step is executed

Implementation

@override
Future<void> onBeforeStep(World world, String step) async {
  currentWorld.currentStep = step;
}