Introduction to Dart
Dart is a language built by Google for building fast apps on any platform — it's best known today as the language Flutter apps are written in. Its syntax will feel familiar if you've used Java, JavaScript, or C#.
Example: a minimal Dart program
void main() {
print('Hello, world!');
}
Hello, world!
Every Dart program starts execution from a main()
function — no wrapping class required, unlike Java or C#, which is one
small but real difference even though Dart's overall style leans
C-family. If you continue into the Flutter subject after this one,
everything you learn here about variables, functions, and classes
transfers directly, since Flutter code is Dart code.
void main() {
print('Hello, world!');
}
Hello, world!