exit method

  1. @Since("3.10")
Never exit(
  1. int code
)

Exit the Dart VM process immediately with the given exit code.

When this override is installed, this function overrides the behavior of exit(...).

Implementation

@Since("3.10")
Never exit(int code) {
  if (!_EmbedderConfig._mayExit) {
    throw new UnsupportedError(
      "This embedder disallows calling dart:io's exit()",
    );
  }
  _ProcessUtils._exit(code);
}