Skip to content

vyuh_plugin_storage_hive ​

HiveStoragePlugin persists general values in a Hive box. The boxName selects the store. This is general storage, not the SecureStoragePlugin contract.

How the pieces fit together

Package source · Released API

Choose a declaration ​

HiveStoragePlugin

HiveStoragePlugin ​

Source

Public declaration in this package.

dart
final class HiveStoragePlugin extends StoragePlugin with InitOncePlugin

Directly declared public members:

dart
final String boxName;
dart
HiveStoragePlugin({this.boxName = 'vyuh_storage'});

Creates a new HiveStoragePlugin instance.

dart
Future<void> initOnce();
dart
Future<void> disposeOnce();
dart
Future<dynamic> read(String key);

Reads a value from the box with the given key.

dart
Future<dynamic> write(String key, dynamic value);
dart
Future<bool> has(String key);
dart
Future<bool> delete(String key);