如果我有:
List<Type> getInheritanceStructure(){
// TODO
}
class A{
}
class B extends A{
}
class C extends B{
}
var c = new C();
List<Type> types = getInheritanceStructure(c);
types.forEach((type) => print(type));
//should print out:
C
B
A
Object
是否可以获得这样的类型列表?