Introduction to Dart
A quick introduction to Dart!
Dart Overview
- It is a modern object-oriented programming language developed by Google for building the UI for our apps
- It is a strongly typed language
- It supports type inference as well
void main() {
var firstVar = func() // type inference - Dart infers the datatype of this variable as an integer
print(firstVar.runtimeType);
}
double func() {
return 3.0;
}
- It supports two compilation modes - Just-in-Time (JIT) compilation and Ahead-of-Time (AOT) compilation
⭐ Important
JIT compilation is used during the development phase, which enables the Flutter’s hot reload feature.
AOT compilation is used for the finished release build of our app.
Checking the Dart Version
- To check the installed Dart version, type this inside of command prompt
dart --version
Expected Output
Dart SDK version: 3.13.5 (stable) (Tue Sep 29 01:00:52 2026 -0700) on “windows_x64”