Skip to content
Justice Tech School

Built in Types

int, double, num, String, bool, List, Set, Map and dynamic. All values are objects.

Example
int i = 7;
double d = 2.5;
num n = 3;
String s = "text";
bool b = true;
print("$i $d $n $s $b");
print(i.runtimeType);

Exercise

Either int or double.

 n = 3;

Quiz Test

Are ints objects in Dart?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.