HiveAdapter constructor
HiveAdapter(
- TypeAdapterRegistry typeAdapterRegistry, {
- String? boxName,
- bool enableEncryption = false,
- String? encryptionKey,
Creates a new instance of HiveAdapter.
The boxName
parameter is used to specify the name of the Hive box to use.
If no boxName
is provided, a default box name of 'data_cache_x' will be used.
Implementation
HiveAdapter(
this.typeAdapterRegistry, {
String? boxName,
this.enableEncryption = false,
String? encryptionKey,
}) : _encryptionKey = encryptionKey ?? 'default_secret_key',
_boxName = boxName ?? 'data_cache_x';