Optimized for UI
为用户界面做了优化
- Mature and complete async-await for user interfaces containing event-driven code, paired with isolate-based concurrency
当用户界面有事件驱动代码时,有完善成熟的异步等待功能, 还配有独立的并发处理(async顾名思义是“异步”的意思,async用于声明一个函数是异步的。而await从字面意思上是“等待”的意思,就是用于等待异步完成。并且await只能在async函数中使用)- A programming language optimized for building user interfaces with features such as the spread operator for expanding collections, and collection if for customizing UI for each platform
一种针对用户界面优化了的编程语言, 带有特有功能.像为每个平台用spread operator来扩展收藏, 用collection if 来定制UI.- A programming language that is easy to learn, with a familiar syntax
一种易于学习,并且语法简单的编程语言
Productive development
高效开发
- Make changes to your source code iteratively, using hot reload to instantly see the effect in the running app
当代码变化迭代时, 使用热部署立即在运行的应用上看到效果.- Write code using a flexible type system with rich static analysis and powerful, configurable tooling
使用灵活的编辑系统写代码.提供丰富的静态分析和强大的配置工具- Do profiling, logging, and debugging with your code editor of choice
使用精致的代码编辑器进行文档编辑, 记日志, 和 debug.
Fast on all platforms
在所有平台上都很快
- AOT-compile apps to native machine code for instant startup
AOT-compile 编译应用到原生代码, 可以立即启动.- Target the web with complete, mature, fast compilers for JavaScript
JavaScript编译器 可以完整,成熟,快速的执行到web端.- Run backend code supporting your app, written using a single programming language
启动后台代码支持你的应用,使用一种简单的编程语言