getClasses function
Implementation
List<ClassDeclaration> getClasses(CompilationUnit code) {
return code.childEntities
.whereType<ClassDeclaration>()
.toList()
.cast<ClassDeclaration>();
}
List<ClassDeclaration> getClasses(CompilationUnit code) {
return code.childEntities
.whereType<ClassDeclaration>()
.toList()
.cast<ClassDeclaration>();
}