© Sanjib Sinha 2020
S. SinhaQuick Start Guide to Dart Programminghttps://doi.org/10.1007/978-1-4842-5562-9_3

3. Functions and Objects

Sanjib Sinha1 
(1)
Howrah, West Bengal, India
 

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 ...

Get Quick Start Guide to Dart Programming: Create High-Performance Applications for the Web and Mobile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.