Arrays are a super useful tool in coding that allows you to store a variety of data inside one object. In this video, learn about using arrays in Flutter and discover how to call index items.
- [Instructor] Alright, so in this lesson … we're going to do a deep dive on Dart lists. … And we've already seen that we can create a list … just as you would create a shopping list by adding … some items to the list, and they each go in in order. … So for example in this case, if I was creating a guest list … for my upcoming party, then as I add names … to the list, they will go in in order. … And remember that when we're dealing with computers, … they always start counting from zero. … So that means that the first item is actually going … to be the zeroth item in the list, … and then the order goes on logically. … So when you're picking items from the list, … you would refer to them by their index. … So in this case, Angela is at index zero, … and Katie is at index two. … And it's little bit counterintuitive because of the fact … that the list starts from zero. … So if we were to pick the third from the list, … it's actually not one, two, three, … but it's actually this one. … We can see how this works using DartPad. …
Released
8/30/2019This course was created by London App Brewery. We are pleased to host this content in our library.
Share this video
Embed this video
Video: Dart lists