onAfterFeature method
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();
}