W3cubDocs

/Dart 2

reflectClass function

ClassMirror reflectClass (Type key)

Reflects a class declaration.

Let C be the original class declaration of the class represented by key. This function returns a ClassMirror reflecting C.

If key is not an instance of Type, then this function throws an ArgumentError. If 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.

Implementation

external ClassMirror reflectClass(Type key);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-mirrors/reflectClass.html