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<ExceptionClassDefinition> get descendantClasses =>
super.descendantClasses.cast<ExceptionClassDefinition>().toList();