ControlPrefs class

Wrapper around SharedPreferences.

Constructors

ControlPrefs()

Properties

hashCode int
The hash code for this object.
no setterinherited
mounted bool
no setter
prefs ↔ SharedPreferences?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String key, {String? defaultValue}) String?
getBool(String key, {bool defaultValue = false}) bool
getDouble(String key, {double defaultValue = 0.0}) double
getInt(String key, {int defaultValue = 0}) int
getJson<T>(String key, {ValueConverter<T>? converter}) → T?
init() Future<ControlPrefs>
mount() Future<SharedPreferences?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String key, String? value) → void
setBool(String key, bool? value) → void
setDouble(String key, double? value) → void
setInt(String key, int? value) → void
setJson(String key, dynamic value) → void
toString() String
A string representation of this object.
inherited

Operators

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