finish method

void finish(
  1. StepError? error
)

Called by the runner when the step ends, with the error if the step has failed

Implementation

void finish(StepError? error) {
  _stopwatch.stop();
  this.error = error;
  statusText = null;
  status = error == null ? StepStatus.succeeded : StepStatus.failed;
}