MetadataEdit class final

Edit of a single metadata entry.

Constructors

MetadataEdit.new({required String key, required String? oldValue, required String? newValue})

Properties

hashCode int
The hash code for this object.
no setteroverride
key String
The key of the entry.
final
newValue String?
The value to set the entry to or None to remove the entry.
final
oldValue String?
The current value of the entry or None if the entry does not exist yet. This is used for concurrency control - if the current value is different from this it's assumed it has been modified by some other task and the whole RepositorySetMetadata operation is rolled back. If that happens, the user should read the current value again, adjust the new value if needed and retry the operation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode(Packer p) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(Unpacker u) MetadataEdit?