exitCode top-level property

int exitCode

Get the global exit code for the current process.

The exit code is global and the last assignment to exitCode determines the exit code of the process on normal termination.

See exit for more information on how to chose a value for the exit code.

Implementation

int get exitCode => process.exitCode;
void exitCode=(int value)

Set the global exit code for the current process.

The exit code is global and the last assignment to exitCode determines the exit code of the process on normal termination.

Default value is 0.

See exit for more information on how to chose a value for the exit code.

Implementation

set exitCode(int value) {
  process.exitCode = value;
}