List is an ordered collection that stores items by index. Dart's List is similar in some ways to a JavaScript Array, but with better type safety.
dart
void main() {
List<String> lessons = ['Syntax', 'Variables', 'Functions'];
print('First lesson: ${lessons[0]}');
lessons.add('Null Safety');
for (final lesson in lessons) {
print('Learn: $lesson');
}
}List means this List will only hold Strings. Since indexes start at 0, you grab the first item with lessons[0].
You should see
First lesson: Syntax Learn: Syntax Learn: Variables Learn: Functions Learn: Null Safety