Get immediate access to this and over 1,500+ other videos and books.

Boost your skills with a Beginner subscription. With over 60+ video courses and our core foundational programming books bundled in one subscription, it’s simply the best investment you can make in your development career.

Create a Closure

This video was last updated on Jun 21 2022

Understand the basics of closures - why you’d use them and how they can maintain their own internal state.


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

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a Professional subscription.

Dart contains a cool feature that you can find in other languages - that is, you put a function inside of another function?

Function applyMultiplier(num multiplier) {

return (num value) {
    return value * multiplier;
var doubleMultiplier = applyMultiplier(2);
var tripleMultiplier = applyMultiplier(3);
var quadMultiplier = applyMultiplier(4);