declarations property Null safety

Map<String, DeclarationMirror> declarations

Returns an immutable map of the declarations actually given in the library.

This map includes all regular methods, getters, setters, fields, classes and typedefs actually declared in the library. The map is keyed by the simple names of the declarations.

Required capabilities: declarations requires a DeclarationsCapability. Note that the available invocation capabilities determine which declarations are included. E.g., in order to obtain a declaration mirror for a given instance method as part of the value returned from declarations there must be a matching InstanceInvokeCapability or InstanceInvokeMetaCapability, and similarly for static methods and top-level functions.


Map<String, DeclarationMirror> get declarations;