LibraryMirror class Null safety

A LibraryMirror reflects a Dart language library, providing access to the variables, functions, and classes of the library.

Implemented types

Constructors

LibraryMirror()

Properties

declarations Map<String, DeclarationMirror>
Returns an immutable map of the declarations actually given in the library. [...]
read-only
hashCode int
Override requested by linter.
read-only, override
isPrivate bool
Whether this declaration is library private. [...]
read-only, inherited
isTopLevel bool
Whether this declaration is top-level. [...]
read-only, inherited
libraryDependencies List<LibraryDependencyMirror>
Returns a list of the imports and exports in this library; [...]
read-only
location SourceLocation
The source location of this Dart language entity, or null if the entity is synthetic. [...]
read-only, inherited
metadata List<Object>
A list of the metadata associated with this declaration. [...]
read-only, inherited
owner Null
A mirror on the owner of this Dart language entity. [...]
read-only, override
qualifiedName String
The fully-qualified name for this Dart language entity. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
simpleName String
The simple name for this Dart language entity. [...]
read-only, inherited
uri Uri
The absolute uri of the library. [...]
read-only

Methods

invoke(String memberName, List positionalArguments, [Map<Symbol, dynamic>? namedArguments]) Object?
Invokes the function or method memberName, and returns the result. [...]
inherited
invokeGetter(String getterName) Object?
Invokes a getter and returns the result. The getter can be the implicit getter for a field, or a user-defined getter method. [...]
inherited
invokeSetter(String setterName, Object? value) Object?
Invokes a setter and returns the result. The setter may be either the implicit setter for a non-final field, or a user-defined setter method. The name of the setter can include the final =; if it is not present, it will be added. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
Whether this mirror is equal to other. [...]
override