storage library

Storage adapters, serializers, and typed storage-backed entity managers.

Import this library when a consuming app needs the persistence surface of DraftMode, including storage drivers and typed entity manager helpers.

Classes

DraftModeSecureStorageDriver
Driver abstraction so secure storage can be mocked without platform channels in tests.
DraftModeStorage<T>
Platform-agnostic contract for persisting encoded storage payloads.
DraftModeStorageEntity<T>
Strongly typed entity-oriented surface backed by encoded storage adapters.
DraftModeStorageEntityHttp<T>
HTTP-backed typed entity manager.
DraftModeStorageEntityManager<T>
Typed entity manager that maps encoded payloads to domain objects.
DraftModeStorageEntitySecure<T>
Secure-storage-backed typed entity manager.
DraftModeStorageEntityShared<T>
Shared-preferences-backed typed entity manager.
DraftModeStorageHttp
Thin adapter around http.Client for repositories that read/write encoded payloads against REST endpoints.
DraftModeStorageSecure
Secure implementation suited for secrets or tokens that require OS-level protection.
DraftModeStorageSerializer<T>
Minimal helper for turning JSON objects into strongly typed models.
DraftModeStorageShared
DraftModeStorage backed by SharedPreferences, primarily for lightweight non-sensitive data persisted on device.

Typedefs

DraftModeSharedPreferencesFactory = Future<SharedPreferences> Function()