RcStorage 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 Methods

clear() Future<bool>
清除所有本地存储
getDouble(String key, [double? defaultValue]) Future<double?>
获取小数
getInstance() Future<SharedPreferences>
getInt(String key, [int? defaultValue]) Future<int?>
获取数字
getString(String key, [String defaultValue = '']) Future<String>
获取字符串
getStringList(String key) Future<List<String>>
获取字符串列表
remove(String key) Future<bool>
清除本地存储
setDouble(String key, double value) Future<bool>
存储小数
setInt(String key, int value) Future<bool>
存储数字
setString(String key, String value) Future<bool>
存储字符串
setStringList(String key, List<String> value) Future<bool>
存储字符串列表