load method
override
Implementation
@override
Future<T?> load() async {
try {
final encrypted = await storage.load();
if (encrypted == null) return null;
final decrypted = decrypt(encrypted);
return deserialize(decrypted);
} catch (e) {
if (kDebugMode) print('EncryptedPersistence load error: $e');
return null;
}
}