HiveHydratedStorage class

Implementation of HydratedStorage which uses package:hive to persist and retrieve state changes from the local device.

Constructors

HiveHydratedStorage(Box _box)
Implementation of HydratedStorage which uses package:hive to persist and retrieve state changes from the local device.

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>
Clears all key value pairs from storage
delete(String key) Future<void>
Deletes key value pair
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) → dynamic
Returns value for key
toString() String
A string representation of this object.
inherited
write(String key, dynamic value) Future<void>
Persists key value pair

Operators

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

Static Properties

hive ↔ HiveInterface
Internal instance of HiveImpl. It should only be used for testing.
getter/setter pair

Static Methods

build({required String storageDirectoryPath, HydratedCipher? encryptionCipher}) Future<HiveHydratedStorage>
Returns an instance of HiveHydratedStorage. storageDirectory is required.