PubspecLock class

PubspecLock is a data type representing data stored in pubspec.lock files.

Inheritance
Annotations
  • @immutable
  • @FunctionalData()

Constructors

PubspecLock({Iterable<SdkDependency> sdks = const {}, Iterable<PackageDependency> packages = const {}})
Default constructor
const

Properties

hashCode int
The hash code for this object.
no setterinherited
packages Iterable<PackageDependency>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdks Iterable<SdkDependency>
final

Methods

copyUsing(void mutator(PubspecLock$Change change)) PubspecLock
inherited
copyWith({Iterable<SdkDependency>? sdks, Iterable<PackageDependency>? packages}) PubspecLock
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toYamlString() String
Produces YAML representation of the PubspecLock object

Operators

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