Dart SDK
dart:mirrors
LibraryDependencyMirror
class
LibraryDependencyMirror
Properties
Constructors
Methods
Properties
isImport
isExport
isDeferred
sourceLibrary
targetLibrary
prefix
combinators
location
metadata
Constructors
LibraryDependencyMirror
Methods
loadLibrary
A mirror on an import or export declaration.
Implements
Mirror
Properties
bool
isImport
read-only
Is true if this dependency is an import.
bool
isExport
read-only
Is true if this dependency is an export.
bool
isDeferred
read-only
Returns true iff this dependency is a deferred import. Otherwise returns false.
LibraryMirror
sourceLibrary
read-only
Returns the library mirror of the library that imports or exports the [targetLibrary].
LibraryMirror
targetLibrary
read-only
Returns the library mirror of the library that is imported or exported, or null if the library is not loaded.
Symbol
prefix
read-only
Returns the prefix if this is a prefixed import and null otherwise.
List
<
CombinatorMirror
>
combinators
read-only
Returns the list of show/hide combinators on the import/export declaration.
SourceLocation
location
read-only
Returns the source location for this import/export declaration.
List
<
InstanceMirror
>
metadata
read-only
Constructors
LibraryDependencyMirror
()
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.