LibraryDependency class Null safety

A LibraryDependency provides information about an import or export.

Constructors

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

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
hides ↔ List<String>?
The list of symbols hidden from this dependency.
optional">@optionalread / 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-onlyinherited
shows ↔ List<String>?
The list of symbols made visible from this dependency.
optional">@optionalread / write
target ↔ LibraryRef?
The library being imported or exported.
read / write

Methods

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

Operators

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

Static Methods

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