classes property Null safety
final
Explicitly provide a list of base classes to generate a switcher for. When multiple are provided then the switch functions will take an instance of each base class in turn and then require case functions for every possible combination of sub-types.
The annotated class must be explicitly provided in this list if you still want the class switches to take it as a parameter. Otherwise you can not include it and the generated switch code will only be for the provided classes, however the extension function will still be on the annotated class and the mixin classes will still be named after the annotated class.
Implementation
final List<Type> classes;