Skip to content

Glossary: Dart Basics

sealed class

Also written: sealed

An abstract class whose subclasses must all be in the same file, so a switch on it can be checked for completeness without a wildcard.

Where the book teaches it

Related terms

abstract classobject patternswitch expression