InMemoryHintStore class
Zero-dependency default: everything held in memory.
Also the reference implementation — the same semantics any persistent store must implement, so it doubles as the fake in widget tests and as documentation of the version rules.
- Implemented types
Constructors
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
-
clear(
) → void -
Forget everything. A debug/dev tool — the production "re-show" is a
version bump, but a hard clear is handy in debug builds and tests.
override
-
markShown(
String key, String version) → void -
Record that the hint was shown at app
version.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldShow(
String key, {String? minVersion}) → bool -
Whether the hint should show (see class doc).
minVersion— the app version the hint targets; null — "show once ever".override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited