SharedPreferencesService class

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 def) bool
getDate(String key, Date def) → Date
getDateTime(String key, DateTime def) DateTime
getDouble(String key, double def) double
getInt(String key, int def) int
getIntList(String key, List<int> def) List<int>
getNullableBool(String key, bool? def) bool?
getNullableDate(String key, Date? def) → Date?
getNullableDateTime(String key, DateTime? def) DateTime?
getNullableInt(String key, int? def) int?
getNullableMap<K, V>(String key, Map<K, V>? def) Map<K, V>?
getNullableString(String key, String? def) String?
getString(String key, String def) String
getStringList(String key, List<String> def) List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBool(String key, bool value) Future<bool>
setDate(String key, Date value) Future<bool>
setDateTime(String key, DateTime value) Future<bool>
setDouble(String key, double value) Future<bool>
setInt(String key, int value) Future<bool>
setIntList(String key, List<int> intList, {bool removeIfEmpty = true}) Future<bool>
setNullableBool(String key, bool? value) Future<bool>
setNullableDate(String key, Date? value) Future<bool>
setNullableDateTime(String key, DateTime? value) Future<bool>
setNullableInt(String key, int? value) Future<bool>
setNullableMap<K, V>(String key, Map<K, V>? value) Future<bool>
setNullableString(String key, String? value) Future<bool>
setString(String key, String value) Future<bool>
setStringList(String key, List<String> stringList, {bool removeIfEmpty = true}) Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create() Future<SharedPreferencesService>