Dart Control statments | RRTutors

Dart Control Flow

If - else This is similar to other programing languages If - else

 

main(List<String> args) {

  var day = 6;

 

  if (number > 7) {

    print('Not a Week Day');

  } else if (number < 100) {

    print('Week Day');

  } 

}

Advertisements