onAfterScenario method

  1. @override
Future<void> onAfterScenario(
  1. TestConfiguration config,
  2. String scenario,
  3. Iterable<Tag> tags, {
  4. bool passed = true,
})

Run after a scenario has executed

Implementation

@override
Future<void> onAfterScenario(
    TestConfiguration config, String scenario, Iterable<Tag> tags,
    {bool passed = true}) async {
  try {
    currentWorld.semantics.dispose();
    await disposeWidget();
    currentWorld.dispose();
  } catch (e) {
    throwsAssertionError;
  }
}