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-onlyoverride
isPrivate bool
Whether this declaration is library private.
read-onlyinherited
isTopLevel bool
Whether this declaration is top-level.
read-onlyinherited
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-onlyinherited
metadata List<Object>
A list of the metadata associated with this declaration.
read-onlyinherited
owner Null
A mirror on the owner of this Dart language entity.
read-onlyoverride
qualifiedName String
The fully-qualified name for this Dart language entity.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
simpleName String
The simple name for this Dart language entity.
read-onlyinherited
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