When we say functions are objects in Dart, it may seem confusing if you’re a beginner. Basically, because Dart is an object-oriented language, even functions are objects and have a type called Function.
This means many things. First, you can assign a function to a variable, and you can even pass a function as an argument to other functions. You can also call an instance of a Dart class as if it were a function.
In this chapter, first you will now learn how a Dart function works. Then you will learn about objects. To understand objects, you need to have an understanding of ...