553 B
553 B
Commands
- there r two ways to execute code
dart main.dart: directly runs code. useful for quick and single dart filedart run main.dart: useful for running a project with lot of other dependencies specified inpubspec.yamlfile - dart uses AOT(Ahead Of Time) compiler to create executable and jit(Just In Time) interpreter to run code directly which means features like hot reload can be used
dart run main.dart: jit interpreterdart compile exe main.dart -o outputand to run this self contained executable called output./output