Dart: Sealed class
To create a known, enumerable set of subtypes, use the sealed modifier. This allows you to create a switch over those subtypes that is statically ensured to be exhaustive. The sealed modifier prevents a class from being extended or implemented outsid...



