Programming in Dart: Control Flow & Collections

This course will build on the previous Programing with Dart course whereby you’ll learn how to manage control flow in your programs as well as explore several of the built in collection types. By Brian Moakley.

Leave a rating/review
Download materials
Save for later
Comments
Share

Learning path

This is part of the Flutter Fundamentals learning path. View path.

Who is this for?

This course is written for people are new programming! If you don’t know the difference between loop or a switch, then you’ve come to the right place!

Before starting, you should have watched Programming in Dart: Fundamentals. This course will build on those foundational concepts and expand on your understanding of the Dart programming language.

Covered concepts

  • While Loops
  • For Loops
  • For In Loops
  • Iterating
  • Switch Statement
  • Maps
  • Sets

Part 1: Control Flow

01
Toggle description

Gain an introduction to control flow and then get an overview of the various tools you’ll be learning in this part.

Toggle description

Learn how to make Dart repeat your code multiple times with while loops, do-while loops, and break statements.

Toggle description

Practice using while loops on your own, through a hands-on challenges.

Toggle description

Learn how to use for loops in Dart, along with ranges, continue, and labeled statements.

Toggle description

Practice using for loops on your own, through a hands-on challenge.

Toggle description

Learn how to use your existing knowledge of for loops to iterate over collections.

Toggle description

Practice iterating over collections using loops on your own, through a hands-on challenges.

Toggle description

Learn how to nest one loop inside another, and even terminate a loop early if and when you need to.

Toggle description

Learn how to switch on values using Dart’s switch statement.

Conclusion 1:44
Toggle description

Let’s review where you are with your Dart control flow, and get a preview about what comes next.

Part 2: More Collections

Toggle description

Learn about some of the other collections offered by Dart that you’ll learn in this part.

Toggle description

Learn how to create and populate Maps, a useful collection in Dart.

Toggle description

See how to access the contents of maps and manipulate maps.

Toggle description

Practice using maps on your own, through a hands-on challenge.

Toggle description

Learn how to create sets, how to populate them with data and retrieve that data.

Toggle description

Now that you understand sets, you will learn how to really leverage their utility by using several set operations.

Toggle description

Practice using sets on your own, through a hands-on challenge.

Conclusion 2:21
Toggle description

Let’s review what you learned in this part, and discuss what’s next.

Up next

Flutter & Dart
Programming in Dart: Functions & Closures
You’ll continue to build on the lessons taught in the Programming in Dart series by learning how to write functions to maximize code reuse as well as to filter and map collections. You’ll also be introduced to self-contained functions called closures to take your Dart code to the next level.

Instructors

Contributors

Brian Moakley

Instructor

Adriana Kutenko

Illustrator

Abigail Seperidad

Video Editor

Over 300 content creators. Join our team.