The entry point of a Dart application is through the main() function. You can run an application using one of the following commands:
main()
dart path/to/file.dart
or
pub run path/to/file.dart
Last updated 5 years ago