core/secure_storage_adapter
library
Classes
-
FakeSecureStorageAdapter
-
In-memory SecureStorageAdapter for consumer contract tests — never
touches a real keystore/Keychain. Register it with
Get.put<SecureStorageAdapter>(FakeSecureStorageAdapter()) in a test
that needs SecureStorage to actually succeed instead of failing with
"no adapter registered".
-
SecureStorage
-
The actual call surface for secure values — wraps SecureStorageAdapter
with the typed SdkResult contract, key validation, and a clear,
typed failure (never a silent fallback to regular storage) when no
adapter is registered.
-
SecureStorageAdapter
-
Platform-neutral secure-storage seam — the package pulls in no concrete
secure-storage SDK (no
flutter_secure_storage, no Keychain/Keystore
wrapper); a consuming app registers its own adapter via
Get.put<SecureStorageAdapter>(myAdapter, permanent: true), same
pattern as PurchaseSeam/CloudSaveProvider/AnalyticsProvider. A
typical real implementation just forwards these 4 methods to
flutter_secure_storage's FlutterSecureStorage (Keychain on iOS,
EncryptedSharedPreferences/Keystore on Android) — this seam doesn't
pick that dependency for you.