Dart Programming - Decision Making


Advertisements

A conditional/decision-making construct evaluates a condition before the instructions are executed.

Decision Making

Conditional constructs in Dart are classified in the following table.

Sr.No Statement & Description
1 if statement

An if statement consists of a Boolean expression followed by one or more statements.

2 If...Else Statement

An if can be followed by an optional else block. The else block will execute if the Boolean expression tested by the if block evaluates to false.

3 else…if Ladder

The else…if ladder is useful to test multiple conditions. Following is the syntax of the same.

4 switch…case Statement

The switch statement evaluates an expression, matches the expression’s value to a case clause and executes the statements associated with that case.

Useful Video Courses


Video

Dart tutorial for Beginners

44 Lectures 4.5 hours

Sriyank Siddhartha

Video

Flutter Tutorial for Beginners with Dart

34 Lectures 4 hours

Sriyank Siddhartha

Video

Dart Masterclass Programming: iOS/Android Bible

69 Lectures 4 hours

Frahaan Hussain

Video

Flutter & Dart Development For Building iOS and Android Apps

117 Lectures 10 hours

Frahaan Hussain

Video

COMPLETE Google DART Programming- BOOTCAMP

22 Lectures 1.5 hours

Pranjal Srivastava

Video

AWS Mobile with Google Dart

34 Lectures 3 hours

Pranjal Srivastava

Advertisements