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.