Dart Decision Making
Decision-making statements allow programmers to choose which statement should be executed under different conditions. At runtime, the decision-making statements determine which statement to execute based on the test expression.
There are four types:
if
statementif-else
statementif else if
statementswitch case
statement