KvStore class
安全存储的同步视图:创建客户端时读入内存,写入时先改内存再按键依次写回安全存储(flush 等待写完)。 只有主 isolate 写入(《2.功能概述文档》第 6 节)。
Constructors
- KvStore(SecureStore _secure, String _prefix)
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
-
flush(
) → Future< void> -
get(
String key) → String? -
keysWithPrefix(
String prefix) → Iterable< String> -
load(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
String key) → Future< String?> - 重新读取一个键(后台 isolate 可能已经改写)。
-
remove(
String key) → void -
set(
String key, String value) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited