W3cubDocs

/Dart 2

LibraryDependencyMirror class

A mirror on an import or export declaration.

Implemented types

Constructors

LibraryDependencyMirror()

Properties

combinatorsList<CombinatorMirror>
read-only
Returns the list of show/hide combinators on the import/export declaration.
isDeferredbool
read-only
Returns true iff this dependency is a deferred import. Otherwise returns false.
isExportbool
read-only
Is true if this dependency is an export.
isImportbool
read-only
Is true if this dependency is an import.
locationSourceLocation
read-only
Returns the source location for this import/export declaration.
metadataList<InstanceMirror>
read-only
prefixSymbol
read-only
Returns the prefix if this is a prefixed import and null otherwise.
sourceLibraryLibraryMirror
read-only
Returns the library mirror of the library that imports or exports the targetLibrary.
targetLibraryLibraryMirror
read-only
Returns the library mirror of the library that is imported or exported, or null if the library is not loaded.
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

loadLibrary() → Future<LibraryMirror>
Returns a future that completes with a library mirror on the library being imported or exported when it is loaded, and initiates a load of that library if it is not loaded.
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-mirrors/LibraryDependencyMirror-class.html