CreateBoxFromTypeExtensions extension

Extension on BoxType to create a Box with a fluent API.

Example:

final box = BoxType.isolated.box<String, MyModel>('myBox');
on

Methods

box<K, T>(String name, {HiveCipher? encryptionCipher, bool crashRecovery = true, String? path, String? collection, LogHandler? logger}) Box<K, T>

Available on BoxType, provided by the CreateBoxFromTypeExtensions extension

Creates a Box of this BoxType with the given parameters.