CreationExtensionsBoxType extension

Extension methods for BoxType to facilitate box creation and configuration. s This allows you to easily create a BoxConfig or a BoxInterface directly from a BoxType value.

on

Methods

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

Available on BoxType, provided by the CreationExtensionsBoxType extension

Creates a BoxConfig for this BoxType with the given parameters.
createBox<K, T>(String name, {HiveCipher? encryptionCipher, bool crashRecovery = true, String? path, String? collection, LogHandler? logger}) BoxInterface<K, T>

Available on BoxType, provided by the CreationExtensionsBoxType extension

Creates a BoxInterface for this BoxType and the given key/value types.