LibraryDependency class

A LibraryDependency provides information about an import or export.


LibraryDependency({bool? isImport, bool? isDeferred, String? prefix, LibraryRef? target, List<String>? shows, List<String>? hides})


hashCode int
The hash code for this object.
no setterinherited
hides List<String>?
The list of symbols hidden from this dependency.
getter/setter pair
isDeferred bool?
Is this dependency deferred?
getter/setter pair
isImport bool?
Is this dependency an import (rather than an export)?
getter/setter pair
prefix String?
The prefix of an 'as' import, or null.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shows List<String>?
The list of symbols made visible from this dependency.
getter/setter pair
target LibraryRef?
The library being imported or exported.
getter/setter pair


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

parse(Map<String, dynamic>? json) LibraryDependency?