Run a Dart file

dart

dart run {{path/to/file.dart}}

click the source code to copy install dart on any operating system with command-not-found.com