>dart2native --help
編寫源文件
// bin\main.dart
main(List<String> args) {
print('hello world');
}
打包
>dart2native ./bin\main.dart -o ./hello
λ ./hello
hello world
也可以打包為exe文件
>dart2native .\bin\main.dart -o ./hello.exe
Generated: d:\ajanuw\dart-test\hello.exe
>hello.exe
hello world