LibraryMirror class abstract

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.
no setter
hashCode → int
Override requested by linter.
no setteroverride
isPrivate → bool
Whether this declaration is library private.
no setterinherited
isTopLevel → bool
Whether this declaration is top-level.
no setterinherited
libraryDependencies → List<LibraryDependencyMirror>
Returns a list of the imports and exports in this library;
no setter
location → SourceLocation
The source location of this Dart language entity, or null if the entity is synthetic.
no setterinherited
metadata → List<Object>
A list of the metadata associated with this declaration.
no setterinherited
owner → Null
A mirror on the owner of this Dart language entity.
no setteroverride
qualifiedName → String
The fully-qualified name for this Dart language entity.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
simpleName → String
The simple name for this Dart language entity.
no setterinherited
uri → Uri
The absolute uri of the library.
no setter

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 nonexistent 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