ModuleDependency class

Dependency with version requirement

Constructors

ModuleDependency({required String moduleId, String? versionRequirement, bool isOptional = false})
ModuleDependency.parse(String spec, {bool isOptional = false})
Parse from string format: "module_id" or "module_id@^1.0.0"
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isOptional → bool
final
moduleId → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versionRequirement → String?
final

Methods

isSatisfiedBy(String version) → bool
Check if a version satisfies this dependency
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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