TypedSettings class
Typed key-value helpers over JSON-encoded settings rows.
Constructors
- TypedSettings({required String? read(String key), required void write(String key, String? value), required void delete(String key)})
- TypedSettings.account(LanisDatabase db, int accountId)
-
factory
-
factory
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) → bool? -
getDouble(
String key) → double? -
getInt(
String key) → int? -
getJsonList(
String key) → List? -
getJsonMap(
String key) → Map< String, dynamic> ? -
getString(
String key) → String? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → void -
scoped(
String prefix) → TypedSettings - Share storage while keeping every setting inside a separate namespace.
-
setBool(
String key, bool? value) → void -
setDouble(
String key, double? value) → void -
setInt(
String key, int? value) → void -
setJsonList(
String key, List? value) → void -
setJsonMap(
String key, Map< String, dynamic> ? value) → void -
setString(
String key, String? value) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited