Mastering Dart’s Variables and Data Types

In this chapter we will see all of Dart’s basic data types such as string, numbers, and Boolean. We will also look at how to define variables in Dart and how to use final and const reserved keywords.

Later, we will see more complex types such as lists, sets, and maps as well as how to work with regular expressions and DateTime objects.

An Introduction to Variables and Data Types

We will start with a very basic and simple definition about what variables are.

The variables are just storage places, memory places that we’ll use to store information.

You already know operators are necessary and basic ...

Get Web Programming with Dart now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.