Spec-Zone.ru › Dart 2

dart:mirrors

reflectClass function

ClassMirror reflectClass(
  1. 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 BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-mirrors/reflectClass.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API