How is Dart code compiled?

Use the dart compile command to compile a Dart program to a target platform . The output — which you specify using a subcommand — can either include a Dart runtime or be a module (also known as a snapshot). For more information about this and other dart commands, see the Dart command-line tool page.

Read more