init static method

Future<void> init()

Initializes the storage service

Implementation

static Future<void> init() async {
  try {
    await GetStorage.init();
    _storage = GetStorage();

    // Start automatic processing of pending events
    _startRetryTimer();

    log('EventStorageService initialized correctly');
  } catch (e) {
    log('Error initializing EventStorageService: $e');
  }
}