$ brew install dart
$ which dart
/usr/local/bin/dart

hello.dart:

#!/usr/bin/env dart

void main() {
  print('Hello Dart.');
}
$ chmod u+x hello.dart
$ ./hello.dart
Hello Dart.

Comments


Option