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

8. Multithreaded Programming Using Future and Callable Classes

Sanjib Sinha1 
(1)
Howrah, West Bengal, India
 

As you know, everything is an object in Dart. A class is an object. A function is also an object. Because of this object-oriented approach, objects should contain some methods to allow them to behave like functions. In this chapter, you will see how we can make them behave like functions. We will allow an instance of any class to behave like a function. Now Dart allows objects with call methods to be called and, at the same time, to be assigned to variables of a function type. In this chapter, we will look into one of the most important ...

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.