LibraryDependency class Null safety

A LibraryDependency provides information about an import or export.


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


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


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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?