WhatsNewStorage class abstract interface

Abstract storage interface for tracking seen versions and user interactions with changelogs.

Implement this interface to back the storage with Hive, SQLite, secure storage, remote feature flags, or in-memory caches.

Implementers

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

addSeenVersion(String version) → Future<void>
Adds version to the set of seen versions.
clear() → Future<void>
Clears all recorded seen versions and resets the storage state.
getAllSeenVersions() → Future<Set<String>>
Returns all versions that have ever been marked as seen by the user.
getLastSeenVersion() → Future<String?>
Returns the last seen version string, or null if no version has been marked as seen yet (such as on a fresh install).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLastSeenVersion(String version) → Future<void>
Persists version as the most recently seen app version.
toString() → String
A string representation of this object.
inherited

Operators

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