initAppState method
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();
//
userCacheEntity = await (driftDB.palaceSecretJungleUser.select()
..whereSamePrimaryKey(const PalaceSecretJungleUserCompanion(
garlicManualInflateUid: Value(7))))
.getSingle();
magnetNaturalLeaflet = {};
final items = (await driftDB.managers.qwhzndtjglvo
.withReferences((p) => p(byqtsnkgjvwe: true))
.get())
.map((item) => (item.$1, item.$2.byqtsnkgjvwe.prefetchedData!.first))
.toList();
for (var item in items) {
final result1 = item.$1;
final result2 = item.$2;
final resultID = result2.urxfykhdsvqo;
final resultValue = result2.pmeozkgwntqa;
magnetNaturalLeaflet.putIfAbsent(resultID, () => {});
final idMap = magnetNaturalLeaflet[resultID]!;
idMap.putIfAbsent(resultValue, () => []);
idMap[resultValue]!.add(result1.hxolpmrqsvaz);
}
final userList = await (driftDB.palaceSecretJungleUser.select()
..where(
(f) => f.processEvolutionFreshEmail.equals('xqplmzndowfykrvh')))
.get();
humorDefineWereSacred = Map.fromEntries(userList.map((u) =>
MapEntry(u.sameLetterCharityUsername, u.notoriousGloveFramePhoto)));
}