CHAPTER 12

image

Understanding Operators and Expressions

In this chapter we will see what operators and expressions are and the different types we can use in our Dart applications. At the end of the chapter we’ll review how to create your own operators.

An Introduction to Dart Operators

Operators are an essential part of any programming language. With them, you can do arithmetic operations with numbers, assign values between variables, and make decisions in a particular moment so that your program will execute one or another block of instructions.

Dart is an object-oriented language; everything in Dart is an object, so the operators are aliases (shortcuts) ...

Get Web Programming with Dart now with O’Reilly online learning.

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