onAfterFeature method

  1. @override
Future<void> onAfterFeature(
  1. Gherkin feature
)

Implementation

@override
Future<void> onAfterFeature(Gherkin feature) async {
  jsonFeature = jsonFeature?.copyWith(elements: [
    ...(jsonFeature?.elements ?? []),
    ...jsonScenarios,
  ]);
  if (jsonFeature != null) jsonFeatures.add(jsonFeature!);
  jsonFeature = null;
  featureGherkinDocument = null;
  jsonScenarios.clear();
}