There are many programming languages you can start learning today. But not many are modern, easy to learn, object-oriented and scalable like Darts. In addition, combined with Flutter, it allows you to build native iOS and Android applications with a single code base.
Dart Apprentice will teach you all the basic concepts you need to master this language. Follow the easily and thoroughly explained concepts, and you will build Dart applications in a game.
Before you begin
This section tells you a few things you need to know before you begin, such as what hardware and software you need, where to find the project files for this book, and more.
Section I: Darts Apprentice
Begin your journey by learning all the basic concepts you need to master this language. Follow the easily and thoroughly explained concepts, and you will build Dart applications in a game.
This chapter will help you set up your development environment to work with Dart, and it will also teach you how to create your first Dart projects. Stay tuned to install the required tools and Darts SDK. Get to know the structure of a Dart project and how to configure it in a code editor.
Now you will learn the basic concepts needed to start programming in Dart. What is the difference between a variable and a constant? How do you write comments? And what mathematical expressions can you use? These will help you get started with the basic principles you need to become a Dart Champion!
In this chapter, you will continue by learning some of the main types that Dart offers and the different operations you can perform on them. You will learn about strings and the way Dart represents text and characters using Unicode. You will also learn about conversion between types and what type of inference, interconnection is interpolation used for. Finally, you see the difference between dynamically and statically typed languages.
Let’s move on to some more advanced concepts. As the name suggests, the control flow will allow you to decide what your program does at each step. Booleaners, enums, switches, if-else statements, and loops will allow you to specify the path your program should follow.
The time has come to start looking at features, one of the concepts you will use a lot when programming in Darts and many other languages. Check out how powerful and flexible Dart features are, and learn about closures and the difference between anonymous and arrow features.
Dig deeper into Dart yourself by learning about Dart classes, and other important elements such as access control for variables / methods, static members, cascade notation and more.
Get an overview of zero before you dive deeper into zero-conscious operators, zero security and more.
Learn the different collection elements, such as lists, maps, sets, higher order features, collection operators and more.
Build on what you learned in Chapter 6, “Classes,” by learning how to extend classes, abstract classes and heritage, mixins, expansion methods, and more.
Learn at the same time in Darts, as well as other functions such as futures, streams, isolates and more. You will be challenged with a mock network call to practice what you have learned.