Summary
In this chapter, we looked at how Dart fits with the OOP basics, which led to an exploration of Dart classes, including inheritance, abstraction, and mixins.
We took a deeper look at class constructors and the different types of constructors available in Flutter, including named and factor constructors.
We then explored enums and examples of how and when they would be used.
Finally, we looked at some more advanced Dart topics that are relevant to Flutter development. The first topic was generics, which allow you to specify type information for a class such as a collection or a Future. The second topic was asynchronous programming, the use of Futures
, async
, and await
, and then a look at Isolates and how they can be used to allow parallel processing.
This chapter will have given you a strong foundational knowledge of Dart and the programming concepts that will be used throughout Flutter development. You may want to refer back to this chapter as we start to look at...