Reflector class

Inheritance
  • Object
  • Reflectable
  • Reflector

Constructors

Reflector()
const

Properties

annotatedClasses Iterable<ClassMirror>
Returns an Iterable of all the classes that can be reflected over in this Reflectable.
no setterinherited
capabilities List<ReflectCapability>
Specifies limits on the support for reflective operations on instances of classes having an instance of this ReflectableBase as metadata.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
libraries Map<Uri, LibraryMirror>
Returns a map of all libraries in the current isolate.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canReflect(Object reflectee) bool
Returns true if this reflector has capabilities for the given instance.
inherited
canReflectType(Type type) bool
Returns true if this reflector has capabilities for the given Type.
inherited
deserialize<T>(Map map) → T?
deserializeList<T>(List list) → T?
findLibrary(String libraryName) → LibraryMirror
Returns a mirror of the given library library.
inherited
getServerName(Type type) String?
isCustomClass<T>([T? object]) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reflect(Object reflectee) → InstanceMirror
Returns a mirror of the given object reflectee.
inherited
reflectType(Type type) → TypeMirror
Returns a mirror of the given type type.
inherited
serialize<T>(T? object) Map<String, dynamic>?
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited