initialize static method
Initializes the PersistentStorageService by setting up Hive storage.
Parameters:
boxName
: The name of the Hive box to open. Defaults to "supa_architecture".
Returns:
- A Future that resolves to an instance of PersistentStorageService.
Implementation
static Future<PersistentStorageService> initialize({
String boxName = "supa_architecture",
}) async {
await Hive.initFlutter();
await Hive.openBox(boxName);
return _PersistentStorageServiceImpl._(
boxName: boxName,
);
}