init method

Future<void> init()

Initialize the service. Must be called before using other methods.

Implementation

Future<void> init() async {
  if (_isInitialized) return;
  try {
    _prefs = await SharedPreferences.getInstance();
    _isInitialized = true;
  } catch (e) {
    debugPrint('SubZeroOnboardingService: Failed to initialize: $e');
    _isInitialized = true; // Still mark as initialized to prevent retries
  }
}