ReleaseDeltaArtifact class
Descriptor metadata for a future delta update artifact.
Constructors
- ReleaseDeltaArtifact({required String fromVersion, required String kind, required Uri url, required String sha256, required int length})
-
Creates delta artifact metadata.
const
-
ReleaseDeltaArtifact.fromJson(Map<
String, dynamic> json) -
Parses delta artifact metadata from a descriptor entry.
factory
Properties
- fromVersion → String
-
Source app version that this delta can patch from.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
Delta artifact type. Version 3 descriptors currently reserve
bsdiff.final - length → int
-
Expected delta artifact length in bytes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sha256 → String
-
Expected lowercase hexadecimal SHA-256 digest.
final
- url → Uri
-
Absolute URL for downloading the delta artifact.
final
Methods
-
ensureRuntimeSupported(
) → void - Throws because runtime delta verification is not implemented yet.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this delta artifact to descriptor JSON.
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void - Validates delta metadata shape without enabling runtime application.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited