StorageImpl<T> class

Implemented types

Constructors

StorageImpl()

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

clear() Future<void>
override
close() Future
override
delete({required String key, bool autoClose = false}) Future<void>
override
deleteList({required Iterable key, bool autoClose = false}) Future<void>
override
getData({required dynamic key, bool autoClose = false}) FutureOr<T?>
override
getLazyListData({bool autoClose = false}) Future<IList<T>?>
override
getListData({bool autoClose = false}) Future<IList<T>?>
override
init({String? subdir}) Future<void>
Register Hive List of TypeAdapter and init the Hive flutter
override
isOpen() bool
override
lazyListenable({List? keys}) ValueListenable<LazyBox<T>>
override
listenable({List? keys}) ValueListenable<Box<T>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openBox(String boxName, {bool useEncryption = true}) Future<Box<T>>
Open Hive box and get the data into memory
override
openLazyBox(String boxName, {bool useEncryption = true}) Future<LazyBox<T>>
Open Hive box and get data without inset it into memory !Do not open lazy box with box on same function or the performance will become bad
override
putData({required Map<dynamic, T> data, bool autoClose = false}) Future<void>
override
putDatum({required dynamic key, required T value, bool autoClose = false}) Future<void>
override
putListData({required Iterable<T> dataList, bool autoClose = false}) Future<void>
override
registerAdapter<S>(TypeAdapter<S> adapter, {bool internal = false, bool override = false}) → void
override
registerAdapterManual({required dynamic adapter(HiveInterface)}) → void
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited