Dart Tutorial

Dart Tutorial Single-Page Application Architecture Dart Features Dart Installation Guide Dart Basic Program Dart Syntax Dart Keywords Dart Variables Dart Comments Dart Standard Input Output Dart Important Concepts

Data Types

Built-in Data Types Numbers Strings Booleans Lists Sets Maps Runes and Graphemes Symbols Enumerations Constants Queues

Other data types

Objects Future and stream Iterable Miscellaneous types

OPERATORS

Precedence and associativity Arithmetic operators Equality and Relational operators Type Test Operators Assignment Operators Logical Operators Bitwise and Shift Operators Miscellaneous operators

Control Flow Statements

Introduction If statement If-else statement If-else-if statement Loops Switch and case Dart Break And Continue Assert In Dart

FUNCTIONS

Dart function Types of Functions Anonymous function main( ) function Lexical scope and closure Recursion Common Collection Methods

Object Oriented Concepts

Dart Object-Oriented Concepts Dart Classes Dart Constructors Dart This Keyword Dart Super Keyword Static Members Method Overriding Dart Interfaces Inheritance Dart Abstract Classes Dart Builder Classes Dart Callable Classes

Dart Type System

Dart Type System Dart Soundness Dart Type Inference

MISCELLANEOUS

Dart Isolates Dart Typedef Dart Metadata Dart Packages Dart Generics Dart Generators Dart Concurrency Dart Unit Testing Dart Html Dom Dart URIs Dart Extends, With and Implements Keywords Dart Optional Parameters Rust Vs Dart C++ vs Dart Golang Vs Dart Dart Basics Exception Handling

Dart - Control Flow Statements

The control flow statements are used to define the control on the flow of the program. Dart programs are executed in sequential order i.e., the order in which the programming statements are written. We use control flow statements in the program when we want to set the flow of the program on the basis of some decision like skipping some statements on the given condition, jumps to another statement or iterate the statements.

Types of flow statements:

  1. Decision-making statements
  2. Looping statements
  3. Jump Statements

Decision-Making Statements in Dart

The decision-making statements enable the execution of the program instructions on the basis of test expression evaluation at the runtime. These test expressions evaluate to Boolean True and False, and helps in deciding the flow of the program. In the program, we have certain instructions corresponding to both True and False and depending on the evaluation result either of these statements are followed.

These statements are also called as selection statements.

Following are the decision-making statements :

  1. If Statements
  2. If-else Statements
  3. If-else-if Statements
  4. Switch Case Statements

Looping Statements in Dart

The looping statements are used to iterate over certain block of statements given number of times till the test condition evaluates to true. These statements are also known as iteration statements.

Following are the looping statements :

  1. For loop
  2. For….in loop
  3. While loop
  4. Do-while loop

Jump Statements in Dart

The jump statements are used to transfer the control of current statements to another statements.

Following are the jump statements :

  1. Break statement
  2. Continue statement