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 14

image

Flow Control Statements

In this chapter we’ll see the flow control statements used in our programs to change the execution flow or to repeat sentences. We’ll see if-else and switch statements.

Later we’ll see the loops statements in Dart for loop and while loop that allow you to repeat blocks of code in your applications. We’ll also see for-in and forEach loops that work with collections.

As you know, a program is a sequence of statements executed sequentially. There are two types of statements:

  • Simple statements: run one after another
  • Control statements: allow you to change the flow of program execution by introducing cycles and conditions ...

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