Skip to content

Glossary: Dart Basics

switch statement

Also written: switch

A statement that compares one value with a list of cases and runs the first that matches, with default for no match. Each case ends by itself, so no break is needed.

Where the book teaches it

Related terms

switch expressionif / else