Programming in Dart: Fundamentals

Apr 26 2022 · Dart 2.15, DartPad, DartPad

Part 2: Introducing Collections & Null Safety

09. Introduction

Episode complete

Play next episode

About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 08. Conclusion Next episode: 10. Create a List

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

At this point, you should have a good understanding of the basic building blocks of the Dart programming language. You've learned how to create variables and made choices based on those variables. As you can see, on our roadmap to Dart understanding, you've made your first step. Nice work. But what happens when you have have lots of related variables? For instance, if you are a teacher, you might have a bunch of test scores from all the students. You need to store them in some place. So welcome to the land of collections. Just like you created collections of things in real life of objects or things that have things in common, like stamps or cat figurines, you can create collections of pieces of data in Dart. We're only going to cover one collection in this part. And that's the list collection. In the follow up course, you'll learn about additional collections. First, you'll learn about the list and how to create one. The list is a really great collection to group similar things like a collection of strings or a collection of integers. In other languages, you'd call these arrays. You'll then learn about some really, really useful features of the list, which you can use to quickly figure out the length of the list, what the first and last elements are, and more features that will make your life much easier when working with lists. Now, list can contain lots of items but sometimes you may try to get values from the list that don't exist. These are called null values. So learning null safety is critical when working with Dart. After which you'll learn how to create using conditional values, then you'll learn how to combine all the elements of a list into another list. And as always, I have a few challenges for you along the way to help you check your knowledge and get some great practice. As you can see, there's a lot to cover. So let's dive into it.