An Introduction to Operators

Let’s overview the operators provided by Dart.

Overview

Operators are symbols that perform operations used for modifying or manipulating data. Manipulating data is an essential part of any programming language, and Dart is no different, providing a rich set of operators for its basic types.

Types of operators

In this chapter, we are going to cover the following built-in operators in Dart:

  • Arithmetic Operators
  • Equality and Relational Operators
  • Type Test Operators
  • Assignment Operators
  • Logical Operators
  • Bitwise and Shift Operators

Operators and expressions

  • An Expression is a special type of statement that evaluates to some value. For instance, in mathematics, 1 + 1 is an expression because it evaluates to 2. Expressions are composed of two things; operands and operators.

  • Operators usually follow an infix notation. The infix notation is where the operator is situated between two operands.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy