DVProtocolLock class

The committed protocol lockfile, oldest version first.

Constructors

DVProtocolLock(List<DVProtocolRelease> releases)
const

Properties

current → DVProtocolRelease?
no setter
hashCode → int
The hash code for this object.
no setterinherited
releases → List<DVProtocolRelease>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bump(DVProtocolContract contract, {required DateTime at}) → DVProtocolLock
Records contract as the next protocol version, current from at.
check(DVProtocolContract contract) → DVProtocolLockCheck
Compares contract with the current version.
encode() → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release(int protocol) → DVProtocolRelease?
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(String source) → DVProtocolLock
Reads a lockfile, refusing one that contradicts itself: a recorded shape that is not its contract's digest, or versions that do not ascend by one. Either means the file was edited by hand, and a window built on it would serve a contract nobody shipped.

Constants

fileName → const String
Where the lockfile lives, next to pubspec.yaml.
format → const int
The on-disk format. A lockfile in another format is refused, not guessed.