initialize static method

Future<PersistentStorageService> initialize({
  1. String boxName = "supa_architecture",
})

Initializes the PersistentStorageService by setting up Hive storage.

Parameters:

  • boxName: The name of the Hive box to open. Defaults to "supa_architecture".

Returns:

Implementation

static Future<PersistentStorageService> initialize({
  String boxName = "supa_architecture",
}) async {
  await Hive.initFlutter();
  await Hive.openBox(boxName);
  return _PersistentStorageServiceImpl._(
    boxName: boxName,
  );
}