HiveHydratedStorage class

Hive implementation of HydratedStorage

Implemented types

Constructors

HiveHydratedStorage(Box box)

Properties

box → Box
final
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>
Clears all values from storage
override
close() Future<void>
Closes the storage instance
override
delete(String key) Future<void>
Deletes value from storage for the given key
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) → dynamic
Reads value from storage for the given key
override
toString() String
A string representation of this object.
inherited
write(String key, dynamic value) Future<void>
Writes value to storage for the given key
override

Operators

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

Static Methods

build({required String storageDirectory, String boxName = 'hydrated_box', bool encrypted = false, List<int>? encryptionKey}) Future<HiveHydratedStorage>
Initializes storage with Hive