PrismSkipStore class

Remembers which versions the user has skipped or dismissed, and whether an update screen was seen, using SharedPreferences.

Keys are namespaced under prism_updater: so the family never collides with host-app preferences.

Constructors

PrismSkipStore({SkipStoreBackend? backend})
Creates a skip store over SharedPreferencesAsync by default, or an injected backend (in-memory in tests).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearSkip(PrismVersion version) → Future<void>
Clears a previously skipped version (e.g. it became forced, or the user explicitly re-checks).
isSkipped(PrismVersion version) → Future<bool>
Whether version was skipped.
markSeen(PrismVersion version, {DateTime? at}) → Future<void>
Records that an update to version was shown to the user at at.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → Future<void>
Clears all prism_updater skip/seen records.
seenAt(PrismVersion version) → Future<DateTime?>
When version's update was last shown, or null if never shown.
skip(PrismVersion version) → Future<void>
Records version as skipped (user pressed "Maybe later").
toString() → String
A string representation of this object.
inherited

Operators

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