initAppState method
Implementation
Future<void> initAppState() async {
final packageInfo = await PackageInfo.fromPlatform();
version = packageInfo.version;
hiveDb = HiveDb();
await hiveDb.initHiveDb();
driftDB = CliseDriftDataBase();
walletList = await (driftDB.prestigeVehicleToughWallet.select()
..orderBy([
(t) => OrderingTerm(expression: t.stormLayoutHallDecide),
]))
.get();
userCacheEntity = await (driftDB.contactOffensivePeaceUser.select()
..whereSamePrimaryKey(const ContactOffensivePeaceUserCompanion(
survivorFamousCurtainUid: Value(7))))
.getSingle();
//
accurateHoleCrystal = {};
final items = (await driftDB.managers.deliverReviseInsightSuite
.withReferences((p) => p(supplyHugeExceedSuit: true))
.get())
.map((item) =>
(item.$1, item.$2.supplyHugeExceedSuit.prefetchedData!.first))
.toList();
for (var item in items) {
final deliverReviseInsightSuiteEntity = item.$1;
final planetCourtesyChiefMotifEntity = item.$2;
final perforateAbstract =
planetCourtesyChiefMotifEntity.fishSharkMotifChop;
final crossProvokeShaft =
planetCourtesyChiefMotifEntity.twistCreamStuffDebt;
accurateHoleCrystal.putIfAbsent(perforateAbstract, () => {});
final bronzeActuallyFeminist = accurateHoleCrystal[perforateAbstract]!;
bronzeActuallyFeminist.putIfAbsent(crossProvokeShaft, () => []);
bronzeActuallyFeminist[crossProvokeShaft]!
.add(deliverReviseInsightSuiteEntity.benchSmellIndirectTick);
}
final userList = await (driftDB.contactOffensivePeaceUser.select()
..where(
(f) => f.torchAncestorDespairEmail.equals('xqpmnsjyklhztvwd')))
.get();
precedeCommonRespect = Map.fromEntries(userList.map((u) =>
MapEntry(u.crouchPoleBuriedUsername, u.turkeyDragonSubjectPhoto)));
}