var list = List(); list. add(1, 2); // list literal definition var list2 = [1, 2, 3]; Dart infers that this is variable of type List<int> . When using data structures like a List or Map , you use < and > to define the types of the values within the List or Map .