The answer is yes.
For example, the following Hello.dart file:
main() => print("Hello World");
when launched using the command (in windows, but also available for mac, linux)
dart.exe Hello.dart
displays
"Hello World"
This is very similar to node.js.
In addition, from the Dart editor, you can click "New> Server Application", and then the "run" command will work as an example above
Check out this file that starts the HTTP server from the command line.
Update . I wrote a blog post about it now, which should give an example and run the code
Chris buckett
source share