exitCode property

int get exitCode

The exit code the run ends with: the highest of its messages'.

Implementation

int get exitCode => messages.fold(
  ReportExitCode.ok,
  (code, m) => m.definition.effectiveExitCode > code
      ? m.definition.effectiveExitCode
      : code,
);