• Variables, Operators and Conditionals, Control Flow
a. Variables Store References
b. Built in Types in Dart
c. Suppose, You don’t like Variables
d. More about built-in types
e. Play with Number and Double
f. Understanding Strings
g. To be True or to be False
h. Introduction to Collections: Arrays are Lists in Dart
i. Get, Set and Go
j. Operators are Useful
k. Equality and relational operators
l. Type test operators
m. Assignment operators
n. Summary of the First Part
Chapter 02: Flow Control and Looping
• Control the flow of your code
a. If and Else
b. Conditional Expression
• Looking at Looping
a. For Loops
b. While and Do-While
c. Patterns in Looping
d. For Loop Labels
e. Continue with For Loop
f. Decision making with Switch and case
Chapter 03: Functions and Objects
• Introduction
• Digging Deep into Object Oriented Programming
a. Why we need Constructors
b. How to implement Classes
c. How Functions or Methods Work
d. Lexical Scope in Function
e. A few words about Getter and Setter
f. Different types of Parameters
g. More about Constructors
Chapter 04: Inheritance and Mixins in Dart
• Mixins
• Adding more Features to a Class
Chapter 05: Abstract Class and Methods
• Interfaces
• Static variables and methods
Chapter 06: Anonymous Functions
• Lambda
• Exploring Higher Order Functions
• Closure is a Special Function
Chapter 07: Data Structures and Collections
• Lists: Fixed Length and Growable
• Set: An Unordered Collections of Unique Items
• Maps: the Key, Value Pair
• Queue is Open-Ended
Chapter 08: Callable Classes and Exception Handling
• Implementing the call() function
• Handling Exceptions
Chapter 09: Dart Packages and Libraries
• Dart:core
• Dart:math
• What’s Next
Sanjib Sinha is an author and tech writer. Being a certified .NET Windows and web developer, he has specialized in Python security programming, Linux, and many programming languages that include C#, PHP, Python, Dart, Java, and JavaScript. Sanjib also won Microsoft's Community Contributor Award in 2011 and he has written Beginning Ethical Hacking with Python, Beginning Ethical Hacking with Kali Linux, Bug Bounty Hunting for Web Security, and two editions of Beginning Laravel for Apress.
Get started with Dart and learn to program high-performing, modern applications. This book starts with an introduction to the Dart IDE, after which you will take a look at the various components of the Dart programming language. You will look at types and variables, and get to know the significance of collections and arrays in Dart. Once you've familiarized yourself with the initial components of Dart, you will see how flow of control and looping can be achieved by using if, else, and conditional expressions. Moving on to functions and objects, you will dig deeper into the concepts of object oriented programming to gauge the importance of constructors in Dart. You will then discover more about inheritance and mixins, seeing how they contain methods for use by other classes.
After gauging the importance of abstract classes and methods, you will learn more about anonymous functions such as lambdas and closures. You will then take a look at key data structures including lists and maps to aid you in organizing your information for storage and retrieval. After all this you’ll move on to managing exceptions arising from executing your program. Finally, Dart programming relies heavily on libraries to perform a variety of functions. You will cover some of these packages and libraries, including Dart:core and Dart:math, and also build a backend server with the help of the Dart core libraries.
You will:
Use variables and conditionals in Dart
Work with arrays and collections
Apply flow control and looping
Explore data structures and their use
Handle exceptions
Use Dart packages and libraries to build a backend server