Tag
“sealed-classes”
Dart Enhanced Enums: Constants, Constructors, and Members in One Declaration
Enhanced enums turned Dart's enums from bare constant lists into full-featured classes. Learn how to add fields, constructors, methods, and getters to an enum — and when a sealed class is still the better tool.
October 21, 2026 AI Assistant
Dart Sealed Classes: Exhaustive Switches and Controlled Hierarchies
A practical guide to Dart sealed classes and class modifiers: compiler-checked exhaustive switches, base, interface, final, and when to reach for each one.
September 25, 2026 AI Assistant