Programming in Dart: Functions & Closures

Jun 21 2022 · Dart 2.16, Flutter, DartPad

Part 2: Learn Anonymous Functions & Closures

10. Introduction

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 09. Conclusion Next episode: 11. Use Anonymous Functions

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.

Transcript: 10. Introduction

Functions are a huge part of Dart so needless to say, they have a ton of features. In the previous part, you learned how to create functions and use them to encapsulate your code. In this part, you’re going to level up that knowledge and then start applying functions to several common programming challenges.

We’ll get started with a discussion about anonymous functions, that is, functions without names and where you might use them.

Then you’ll learn how to use functions to both change and filter your lists.

Then you’ll be introduced into closures.

After which, you’ll be introduced to generics and what it means to be generic.

Finally you’ll learn how to create generic functions so that function can work on lots of different types. As you can see, we have a lot to do so let’s get this party started with anonymous functions.