• Guides
    • Getting started with Dart
  • Blog
  • FAQ
    • Dart
    • Flutter
  • Contact
  • Guides
    • Getting started with Dart
  • Blog
  • FAQ
    • Dart
    • Flutter
  • Contact
  • Getting Started with Dart
    • Dart Variables
    • Dart Operators
    • Dart Comments
  • Dart Data Types
    • Dart Strings
    • Dart Numbers
    • Dart Booleans
    • Dart Lists
    • Dart Maps
  • Control Flow
    • Dart if...else Statements
    • Dart switch Statement
    • Dart for Loop
    • Dart for...in Loop
    • Dart while and do...while Loops
    • break and continue Statements
  • Dart Functions
  • Dart Classes
  • Dart Objects
  • Dart Constructors
  • Dart Exceptions

Control Flow

83 views 0

Written by Ajaya Shrestha
January 13, 2022

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 :

  1. Selection Statements
  2. Loop Statements
  3. 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. 

  • Dart if…else Statements
  • Dart switch 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.

  • Dart for Loop Statements
  • Dart for…in Loop Statements
  • Dart while 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.

  • Dart break Statements
  • Dart continue Statements

Was this helpful?

Yes  No
Related Articles
  • Dart Constructors
  • Dart Exceptions
  • Dart Objects
  • Dart Classes
  • Dart Functions
  • break and continue Statements
Previously
Dart Maps
Up Next
Dart if…else Statements
flutter-dev-experts




FLUTTERGUIDE
FlutterGuide is an easy learning guide platform to help you build apps for any screen. The leading Dart/Flutter guides for getting started and become pro.
Guides
  • Getting started with Dart 22
  • Private Documentation 1
Categories
  • Firebase
  • Dart
  • iOS
  • API
  • Bloc
  • Flutter
  • Widgets
  • Mobile
  • State Management
  • Design
  • Animations
  • Flutter Designs
About
About Us
Guides
Blogs
FAQs
Contact
  • Privacy Policy
  • Terms & Conditions
  • Copyright 2022 Fawesome Apps. All Rights Reserved