SankofaUpdate class

Patch metadata returned by checkForKbcUpdate when status is SankofaUpdateStatus.outdated. Mirrors Shorebird's Patch plus the fields the Sankofa server actually exposes.

Annotations

Constructors

SankofaUpdate({required String label, required String releaseId, required String downloadUrl, required String sha256, required int sizeBytes, required bool isMandatory})
const

Properties

downloadUrl String
Signed CDN URL the SDK fetches the envelope from. Time-limited (~15 min on B2). Do not persist this URL — re-check if you need to download later.
final
hashCode int
The hash code for this object.
no setterinherited
isMandatory bool
True iff the release was marked mandatory in the dashboard. The host should skip any "Update?" prompt and download immediately; optional updates should be gated behind a user confirmation.
final
label String
Human-readable release label (e.g. "v1.2.0-patch.3"). Same label the dashboard's Releases view displays.
final
releaseId String
Stable release identifier (e.g. "rel_*"). Useful for analytics
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sha256 String
SHA-256 of the envelope bytes. The SDK verifies this end-to-end during download; the field is exposed so a host can show "Patch signed: abc12345…" in a debug UI.
final
sizeBytes int
Envelope size in bytes. Used to drive a progress bar before the download starts ("Downloading 240 KB…"). Zero when the server didn't include it (legacy releases).
final

Methods

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

Operators

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