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: