Skip to content

Glossary: Dart Basics

exhaustive matching

Also written: exhaustive, exhaustively matched

The rule that a switch expression must cover every possible value, or Dart reports an error. An enum or sealed class lets Dart check this without a `_` line.

Where the book teaches it

Related terms

switch expressionsealed classwildcard