dart - 我可以使用编辑器在生产模式下运行 Dart 程序吗?

标签 dart

我想在生产模式而不是检查模式下运行我的 Dart 程序。我正在使用 Dart 编辑器。我可以控制运行时模式吗?

最佳答案

确实可以!在“管理启动”中找到“以检查模式运行”复选框。取消选中此项将以生产模式运行您的 Dart 程序。

请记住,在生产模式下,静态类型注释将被忽略。

关于dart - 我可以使用编辑器在生产模式下运行 Dart 程序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12412913/

相关文章:

flutter - 当Flutter中的全局变量更改(异步)时更新小部件

dart - 根据官方文档,Flutter 不显示图像

android - 如何在Flutter WebView或InAppWebView中添加JavaScriptInterface?

animation - 容器高度动画从中间开始

flutter - SingleChildScrollView 下的 MainAxisAlignment 不起作用

android-studio - TabBar Controller 中的问题(对于TabBar,没有tabBar Controller )

dart - 如何在Dart程序中从用户获取控制台整数输入?

android - 在我的 Flutter 应用程序中使用由 swagger 生成的 Dart codegn 提供的 WebServices

flutter - 如何在flutter中完成输入后立即保存文本表单字段的输入值

dart - CheckboxListTile 在使用来自 firebase 的实时数据库时不起作用