SharedPreferencesUtil 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

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

instance ↔ dynamic
getter/setter pair

Static Methods

clearSharedPrefs() Future<bool>
getSharedPrefsBool(String key) Future<bool>
getSharedPrefsString(String key) Future<String?>
getSharedPrefsStringList(String key) Future<List<String>>
init() Future
初始化首选项信息 SharedPreferences.getInstance() isWeb SharedPreferencesPlugin() isWindows SharedPreferencesWindows.instance
removeSharedPrefs(String key) Future<bool>
setSharedPrefsBool(String key, bool value) Future<bool>
setSharedPrefsString(String key, String value) Future<bool>
setSharedPrefsStringList(String key, List<String> value) Future<bool>