In the Dart programming language, there is no Array construct. Instead, we use the List structure. This List structure, which we use to hold more than one data, is also divided into two:

  • Fixed length
  • Growing structure

Below you can see the definitions of these two features. List structure can take variable data type according to the values it will take. The data is sequential. We can easily perform functions such as adding and deleting data to the list structure with ready-made methods.

//Fixed length
List<int> numbers = new List(3);
List<int> numbers2 = [1, 2, 3];

//Growing structure
List<String> words = new List();