boxConfig method

BoxConfig boxConfig(
  1. String name, {
  2. HiveCipher? encryptionCipher,
  3. bool crashRecovery = true,
  4. String? path,
  5. String? collection,
  6. LogHandler? logger,
})

Creates a BoxConfig for this BoxType with the given parameters.

Example:

final config = BoxType.lazy.boxConfig('myBox', encryptionCipher: cipher);

Implementation

BoxConfig boxConfig(
  String name, {
  HiveCipher? encryptionCipher,
  bool crashRecovery = true,
  String? path,
  String? collection,
  LogHandler? logger,
}) =>
    BoxConfig(
      name,
      type: this,
      encryptionCipher: encryptionCipher,
      crashRecovery: crashRecovery,
      path: path,
      collection: collection,
      logger: logger,
    );