ControlPrefs class
Wrapper around SharedPreferences
.
Constructors
Properties
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