shutdown static method
void
shutdown()
Used to shutdown Realm and allow the process to correctly release native resources and exit.
Disclaimer: This method is mostly needed on Dart standalone and if not called the Dart program will hang and not exit. This is a workaround of a Dart VM bug and will be removed in a future version of the SDK.
Implementation
static void shutdown() => scheduler.stop();