init method

Future<bool> init(
  1. String path,
  2. bool ghostMode
)

Implementation

Future<bool> init(String path, bool ghostMode) async {
  //await db.initFlutter(); //init db elsewhere

  _ghostMode = ghostMode;

  _foCapBox = await db.openBox('focalCapsule' + path);
  _xxBox = await db.openBox('xxCache' + path);
  _xxCidToxx = await db.openBox('xxCacheCids' + path);
  _kaCapBox = await db.openBox('katamari' + path);
  _prefsCapBox = await db.openBox('sitesprefs');
  _mutesCapBox = await db.openBox('prefsmutes' + path);
  _deletesCapBox = await db.openBox('prefsdelete' + path);
  _ipfsCapBox = await db.openBox('ipfsCapsule' + path);
  _appCachesCapBox = await db.openBox('appCaches' + path);

  ready = true;
  return true;
}