ReleaseArtifact class

Download metadata for the artifact referenced by a descriptor.

Constructors

ReleaseArtifact({required String kind, required Uri url, required String sha256, required int length})
Creates artifact metadata.
const
ReleaseArtifact.fromJson(Map<String, dynamic> json)
Parses artifact metadata from the descriptor artifact object.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
kind → String
Artifact type. Version 3 descriptors support zip, dmg, pkgInstaller, and innoInstaller.
final
length → int
Expected 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 artifact.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this artifact to descriptor JSON.
toString() → String
A string representation of this object.
inherited
validate() → void
Validates artifact kind, digest shape, and byte length.

Operators

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