descendantClasses property
Returns a list of all descendant classes. This includes all child classes and their descendants. If the class has no child classes, an empty list is returned.
Implementation
@override
List<ModelClassDefinition> get descendantClasses =>
super.descendantClasses.cast<ModelClassDefinition>().toList();