exitGracefully function

void exitGracefully()

Calls the onExit() handler that was passed in bootstrap() and exits the Dart VM process immediately after.

If the current program has already been asked to exit, calling this method has no effect.

Implementation

void exitGracefully() {
  Bootstrapper.exitGracefully();
}