initConsts function
initialize the constants and some other core elements of the app such as logging as well as the internal registry of the app so it knows all the registered jobs
Implementation
Future<void> initConsts() async {
// _loggerQueue = Queue<String>();
logger.onRecord.listen((LogRecord record) {
final String built = "[${record.level.name}]: ${record.time}: ${record.message}";
print(built);
// if (_loggerQueue.length == kLoggerDebugViewRecentFilterDepth) {
// _loggerQueue.removeFirst();
// }
// _loggerQueue.addLast(built);
// StringBuffer buffer = StringBuffer("log_depth");
// for (int i = 0; i < kLoggerDebugViewRecentFilterDepth; i++) {
// buffer.write("$i: $built");
// }
// debugSeek()["dd"] = buffer.toString();
pushbackLogRecord(record);
});
hierarchicalLoggingEnabled = true;
logger.level = Level.ALL;
// initialize locale
// TODO: will need additional telemetry save options (additonal patterns)
// InternationalizationNotifier().changeLocale("zh"); // * FORCED LOCALE CHANGE (VOLATILE)
// exclude non latin based locales for the stylized font that only works on latin characters
// kStylizedFontFamily = const <String>[
// "ar",
// "zh",
// "ja",
// "ko",
// "ru",
// "bg",
// "el",
// "hi",
// "he",
// "th"
// ].contains(kForcedLocale ?? Platform.localeName.split("_")[0])
// ? kDefaultFontFamily
// : "Playfair Display";
AutoImgCore.init();
random = Random.secure();
}