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. Following is the syntax. if(boolean_expression){ // statement(s) will execute if the Boolean expression is true. }
How do you use if else in darts?
Dart Programming – If Else Statement (if , if..else, Nested if,…