Dart Basics
Types, functions, and classes in Dart
Dart is the language behind Flutter. Click each topic to see how it works.
var count = 42;
Mutable, type inferred as int
final name = 'Flutter';
Set once, cannot reassign
const pi = 3.14;
Compile-time constant
Dart has var, final, and const. Type inference lets the compiler figure out types for you.