reflectClass function Null safety
- Type key
Reflects a class declaration.
Let C be the original class declaration of the class represented by
This function returns a ClassMirror reflecting C.
key is not an instance of Type, then this function throws an
key is the Type for dynamic or a function typedef,
throws an ArgumentError.
Note that since one cannot obtain a Type object from another isolate, this function can only be used to obtain class mirrors on classes of the current isolate.
external ClassMirror reflectClass(Type key);