Get the global exit code for the Dart VM.
The exit code is global for the Dart VM and the last assignment to exitCode from any isolate determines the exit code of the Dart VM on normal termination.
See exit for more information on how to chose a value for the exit code.
int get exitCode => _ProcessUtils._getExitCode();void exitCode= (
Set the global exit code for the Dart VM.
The exit code is global for the Dart VM and the last assignment to exitCode from any isolate determines the exit code of the Dart VM on normal termination.
Default value is 0
.
See exit for more information on how to chose a value for the exit code.
void set exitCode(int code) { if (code is! int) { throw new ArgumentError("Integer value for exit code expected"); } _ProcessUtils._setExitCode(code); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/exitCode.html