Module class
A collection of Dart libraries in a strongly connected component of the import graph.
Modules track their sources and the other modules they depend on. modules they depend on. Modules can span pub package boundaries when there are import cycles across packages.
- Annotations
-
- @_AssetIdConverter()
- @_DartPlatformConverter()
- @JsonSerializable()
Constructors
-
Module(AssetId primarySource, Iterable<
AssetId> sources, Iterable<AssetId> directDependencies, DartPlatform platform, bool isSupported, {bool isMissing = false}) -
Module.fromJson(Map<
String, dynamic> json) -
Generated factory constructor.
factory
Properties
-
directDependencies
→ Set<
AssetId> -
The primarySources of the Modules which contain any library imported
from any of the sources in this module.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMissing → bool
-
Missing modules are created if a module depends on another non-existent
module.
final
- isSupported → bool
-
Whether or not this module is supported for platform.
final
- platform → DartPlatform
-
final
- primarySource → AssetId
-
The library which will be used to reference any library in sources.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
→ Set<
AssetId> -
The libraries in the strongly connected import cycle with primarySource.
final
Methods
-
computeTransitiveDependencies(
BuildStep buildStep, {bool throwIfUnsupported = false}) → Future< List< Module> > - Returns all Modules in the transitive dependencies of this module in reverse dependency order.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited