I Was Writing Dart Sealed Classes Wrong for a Year. Here’s What I Missed

Dart sealed classes and exhaustive pattern matching. How a default case in every switch statement was silently swallowing new state…