LocalStorage class
date: 2019/06/03 desc: 持久化各种类型数据到文件当中 warn: 存储对象类型数据,需要对象类中重写 toJson 方法
Constructors
- LocalStorage()
-
factory
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
-
getItem(
String key) → Future -
getItemByUser(
String userId, String key) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeItem(
String key) → Future< bool> -
removeItemByUser(
String userId, String key) → Future< bool> -
setItem(
String key, dynamic value) → Future< bool> -
setItemByUser(
String userId, String key, dynamic value) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited