RxNetDataBase class

Constructors

RxNetDataBase.new()

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

clean() Future<void>
delete(String key) Future<void>
exists(String key) Future<bool>
get<T>(dynamic key) Future<T?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(dynamic key, dynamic value) Future
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](dynamic key) FutureOr
operator []=(dynamic key, dynamic value) → void

Static Properties

isDatabaseReady bool
getter/setter pair

Static Methods

initDatabase({Directory? directory, String? hiveBoxName = 'local_cache', HiveCipher? encryptionCipher}) Future
setDataBaseReadListener(dynamic function(bool isOk)) → void
数据库还没初始完成,可能已经存在网络请求,先将其缓存 等待数据库完成后并返回数据后,将其全部回调全部清除。