SharedPreferencesUtils class

Constructors

SharedPreferencesUtils()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

sharedPreferences ↔ SharedPreferences
getter/setter pair

Static Methods

getBool(String key, {bool? defaultValue}) bool?
getDouble(String key, {double? defaultValue}) double?
getInt(String key, {int? defaultValue}) int?
getString(String key, {String? defaultValue}) String?
getStringList(String key, {List<String>? defaultValue}) List<String>?
init() Future<SharedPreferences>
putBool(String key, bool? value) Future<bool>
putDouble(String key, double? value) Future<bool>
putInt(String key, int? value) Future<bool>
putString(String key, String? value) Future<bool>
putStringList(String key, List<String>? value) Future<bool>
remove(String key) Future<bool>