English 中文(简体)
我如何无条件退出达特申请?
原标题:How do I unconditionally exit a Dart application?
  • 时间:2012-05-23 00:56:21
  •  标签:
  • dart

在服务器端 VM 应用程序中, 有几个未来可能返回或不返回。 如何无条件退出该应用程序?

最佳回答

要退出 VM :

import  dart:io ;

main() {
  exit(0); // or non-zero for some error code
}

记录着"http://api.dartlang.org/docs/bleeding_edge/dart_io.html#exit" rel="noreferrer">这里。谢谢!

问题回答

暂无回答




相关问题
Why my flutter app works in debug mode but not after release

I have read some other topics in stackovwrflow with similar problems, But none is answered. So I m asking here. I am developing an airhockey game using flutter in android studio. Everything is normal ...

DropdownButton Menu item width

is there any to reduce the width of the dropdownbutton menu widow width after clicking the dropdownbutton? only want to change the width of the window after clicking dropdownbutton and keeping the ...

• 如何设计我的闪闪lash屏

这正是我的闪lash屏幕是如何显示的,因此,我如何能够使标识填满四舍五入的圆环形,以及我能如何做到,这样我就能够增添一个背景形象。

Flutter App cannot be installed on Android TV

I m building a Flutter app that should support Android TV and Mobile devices. Despite Google Play shows that it is supported, I cannot install app on my MiBox device. While trying to install it, both ...

How to write to second tree in Firebase Realtime Database

I have a Firebase Realtime Database and I want to write to it, that s simple enough, but I have added more than one tree to my Database and want to know how to write to the second tree. Right now I ...

Moving the icon button to the right causes rendering issues

I am trying to align the icon button to the right of the Text field, I tried the row which made the icon button not centered vertically and now I am trying out the Stack widget. Here is my code - ...

热门标签