NmPrefsStore class abstract interface

Minimal key-value persistence used by library controllers.

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

getBool(String key) → Future<bool?>
Stored flag, or null.
getString(String key) → Future<String?>
Stored string, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBool(String key, bool? value) → Future<void>
Stores a flag; null removes the key.
setString(String key, String? value) → Future<void>
Stores a string; null removes the key.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

fallback ↔ NmPrefsStore
The store library controllers use when none is passed (NmTableController, NmSidebarController, NmLocaleController). In memory in nativemind_core; nativemind_widgets' NmApp switches it to its shared_preferences store NmPrefs.instance.
getter/setter pair
fallbackIsDefault → bool
Whether fallback is still the library's in-memory default (nobody set a store).
no setter