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
SharedPreferencesAsyncby default, or an injectedbackend(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
versionwas skipped. -
markSeen(
PrismVersion version, {DateTime? at}) → Future< void> -
Records that an update to
versionwas shown to the user atat. -
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, ornullif never shown. -
skip(
PrismVersion version) → Future< void> -
Records
versionas skipped (user pressed "Maybe later"). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited