NmMemoryPrefs class

In-memory store (tests, previews).

Implemented types

Constructors

NmMemoryPrefs([Map<String, Object>? initial])
A store preloaded with initial values.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Map<String, Object>
Current values.
final

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