CreateBoxFromConfigExtensions extension

Extension on BoxConfig to create a Box instance directly.

Example:

final config = BoxConfig('myBox', type: BoxType.lazy);
final box = config.box<String, MyModel>();
on

Methods

box<K, T>() Box<K, T>

Available on BoxConfig, provided by the CreateBoxFromConfigExtensions extension

Creates a Box from this BoxConfig.