dispose method

Future<void> dispose()

Writes the ScenarioRunResult to the EvaluationResultStore.

Should be called in a finally block after evaluate.

Implementation

Future<void> dispose() async {
  if (_result != null) {
    await _resultStore.writeResults([_result!]);
  }
}