getKeys method

Future<List<String>> getKeys()

Implementation

Future<List<String>> getKeys() async {
  try {
    final all = await _storage.readAll();
    return all.keys
        .where((key) => key.startsWith(StorageConfig.securePrefix))
        .map((key) => key.replaceFirst(StorageConfig.securePrefix, ''))
        .toList();
  } catch (e) {
    debugPrint('IceStorage SecureService: Error obteniendo claves - $e');
    return [];
  }
}