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 should be used.
Finally, we looked at some more advanced Dart topics that are relevant to Flutter development. The first topic was generics, which allows you to specify the type of information for a class, such as a collection or a Future. The second topic covered asynchronous programming, the use of Futures
, async
, and await
, and then 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...