Dart Continue statement

In this tutorial you will learn about the Dart Continue statement and its application with practical example.

Dart Continue Statement

The continue statement gives you way to skip over the current iteration of any loop. When a continue statement is encountered in the loop, the rest of statements in the loop body for current iteration and returns the program execution to the very first statement in the loop body. It does not terminates the loop rather continues with the next iteration.

Dart Continue Statement Flow Diagram

dart_continue_flow_diagram

Syntax:-

Example:-

When we run the above Dart program, we will see following output –

Output:-

dart_continue_statement_example

As you can see when ctr == 5, continue statement is executed which causes the current iteration to end and the control moves on to the next iteration.

Recommended:-  Dart Conditional Operators
In this tutorial we have learn about the Dart Continue statement and its application with practical example. I hope you will like this tutorial.