When you first started this course, you learned that functions are a way to call code on demand. Little did you know, how much capabilities functions would give you. If stopped learning Dart now, you’d be more than capable in creating to rich Dart programs. But before you learn about what’s coming next, it’s time review where we just were.
We started this part with a quick introduction of anonymous functions. You’ll be using anonymous functions all the time, especially when working with Flutter. Anonymous functions work really well with callbacks so by all means, get used to working with them.
Then you learned how a use both the map and filter functions on methods. There are lots of other functions as well so it’s worth looking into the documentation.
Then you learned how to create closures. This is another language feature that is used in lots of different languages. Dart doesn’t understand the concept of private variables like in other languages so if you want to prevent any code from altering a variable, you put it in a closure.
We closed off this part by introducing generics. First you learned about generics in a “general sense”.
After which, you learned how to write your very own generic functions. There’s more to say about generics especially when working with classes so you’re going to want to watch our forth and final course on Dart.
And that brings to the end. Now, if you wish to gain a deeper understanding of Dart, by all means, read the Dart Apprentice. Many of the examples in this course were taken from that book. Also, the book goes deeper into functions and closures so by all means, check it out.
That wraps up this course. We crossed the desert of functions and closures and in the fourth in the final part of this course, we will arrive in the land of milk and honey where you’ll be introduced to the ideas of classes and objects. This is the power behind Dart and will level up your code to the next level. So take a break and when you are ready and well rested, meet me in part four. I hope to see you then.