O'Reilly logo

Web Programming with Dart by Patricia Juberias, Moises Belchin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 13

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required