Dart for Flutters
Dart is the programming language Flutter apps are written in. It is statically typed, object-oriented and has sound null safety, so a variable cannot hold null unless its type says so. Learning Dart first matters because classes, async code and collections show up in every widget and plugin you use.
Stage: Dart and Widgets · Part of the Flutter roadmap · Last reviewed 19 November 2026
What to learn in Dart
- Declare typed variables and use final and const correctly
- Handle nullable types with the question mark, bang and null-aware operators
- Write classes with constructors, named parameters and inheritance
- Use List, Map and Set with collection methods such as map and where
- Run asynchronous code with Future, async and await
Dart interview questions
What is the difference between final and const in Dart?
A final variable is assigned once at runtime and cannot be reassigned. A const value is a compile-time constant, fixed before the program runs, and const objects are canonicalised. In Flutter, const widgets can be reused and skipped during rebuilds.
What does sound null safety mean in Dart?
Types are non-nullable by default, so a String can never hold null while a String? can. The compiler checks this at build time and promotes types after null checks, which removes a whole class of runtime null reference errors.
Where Dart fits in the Flutter roadmap
Dart belongs to the Dart and Widgets stage (beginner level), which takes about 18 hours. The basics.
Other units in this stage
Back to the full Flutter roadmap