initialize method

Future<void> initialize()

Implementation

Future<void> initialize() async {
  BootLog().log("🔧 BootupService: Starting initialization");

  secureStorage = const FlutterSecureStorage();
  BootLog().log("🛡 Secure storage initialized");

  prefs = await SharedPreferences.getInstance();
  BootLog().log("📦 SharedPreferences initialized");

  packageInfo = await PackageInfo.fromPlatform();
  BootLog().log("📱 App version: ${packageInfo.version} (${packageInfo.buildNumber})");

  await _checkFirstLaunchOrUpgrade();
}