List: The Dart Array

​​Let’s learn to create a List in Dart.

Overview

Arrays are one of the most common and most popular data structures provided by a programming language. That being said, there are no arrays in Dart. Instead, Dart has lists which provide more or less everything an array provides.

Lists are an ordered collection of objects. This means that every element in a list has a fixed position. Use a List when you need to access objects by index.

Lists are of the type List.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy