NmPrefs class
NmPrefsStore on shared_preferences, falling back to memory when the platform store is unavailable (tests, private browsing).
- Implemented types
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.
override
-
getString(
String key) → Future< String?> -
Stored string, or null.
override
-
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.
override
-
setString(
String key, String? value) → Future< void> -
Stores a string; null removes the key.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited