Dart API Referencedart:mirrors

dart:mirrors library

Functions

InstanceMirror reflect(Object reflectee) #

Returns an InstanceMirror for some Dart language object.

This only works if this mirror system is associated with the current running isolate.

InstanceMirror reflect(Object reflectee) {
  return _Mirrors.reflect(reflectee);
}

Future<MirrorSystem> mirrorSystemOf(SendPort port) #

Creates a MirrorSystem for the isolate which is listening on the SendPort.

Future<MirrorSystem> mirrorSystemOf(SendPort port) {
  return _Mirrors.mirrorSystemOf(port);
}

MirrorSystem currentMirrorSystem() #

Returns a MirrorSystem for the current isolate.

MirrorSystem currentMirrorSystem() {
  return _Mirrors.currentMirrorSystem();
}

Classes

Exceptions