concept switch statement in category dart
appears as: switch statement

This is an excerpt from Manning's book Dart in Action.
This can be rewritten using a switch statement, which checks each case value to see if it’s equal to the switched value. Every condition that contains a body must also have a break statement that causes the switch check to end: