initAppState method

Future<void> initAppState()

Implementation

Future<void> initAppState() async {
  final packageInfo = await PackageInfo.fromPlatform();
  version = packageInfo.version;
  hiveDb = HiveDb();
  await hiveDb.initHiveDb();
  driftDB = CloryDriftDataBase();
  walletList = await (driftDB.accessBrightDiagramWallet.select()
        ..orderBy([
          (t) => OrderingTerm(expression: t.sandRoyaltyDesignPink),
        ]))
      .get();
}