In this chapter, we will learn about the control flow statements of dart.
Control Flow Statements
The control flow statements allow to direct the flow of the program as per the need. These statements help in the decision making, looping and also jump the program to particular statements.
There are different types of control flow statements. They are :
- Selection Statements
- Loop Statements
- Jump Statements
Selection Statements
Selection statements help in making decisions in the program. The selection statements result in either true or false when evaluated.
In Dart, we have the following selection making statements.
Loop Statements
One of the control flow statement is loop statement. Loop statements help in running the same block of code multiple times. In Dart, we have the following loop statements.
Jump Statements
Jump statements help in moving the flow of the program from one statement to another.
In Dart, we have the following jump statements.