checkpoint library
Flutter State Snapshot & Restore SDK
A developer-only package for capturing, serializing, and restoring logical app state to reproduce bugs and debug state-related issues.
Classes
- FileSnapshotStorage
- File-based storage implementation for snapshots.
- MemorySnapshotStorage
- In-memory storage implementation for snapshots.
- SharedPreferences-based storage implementation for snapshots.
- Snapshot
- Immutable snapshot of application state.
- SnapshotManager
- Orchestrates snapshot capture and restore logic.
- SnapshotRegistry
- Central registry for state providers with key mapping.
- SnapshotSerializer
- Serializes and deserializes snapshots to/from JSON with versioned schema support.
- SnapshotStorage
- Storage interface for persisting snapshots.
- SnapshotValidationResult
- Result of snapshot validation.
-
StateContributor<
T> - Contract for state contributors that can export and import their state.
- StateSnapshot
- Main entry point for the Checkpoint SDK.
- StateValidator
- Validates that state data is JSON-serializable and safe for checkpoint.
Typedefs
-
StateExporter
= Map<
String, dynamic> Function() - Function signature for exporting application state to a JSON-serializable map.
-
StateImporter
= void Function(Map<
String, dynamic> ) - Function signature for importing application state from a JSON-serializable map.