AppSessionSnapshot class

In-memory app state captured from a successful session-producing test.

Constructors

AppSessionSnapshot({required Map<String, dynamic> publicStorage, required Map<String, dynamic> secureStorage, required Map<String, dynamic> keychain, Locale? locale})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
keychain → Map<String, dynamic>
final
locale → Locale?
final
publicStorage → Map<String, dynamic>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secureStorage → Map<String, dynamic>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restore() → Future<void>
restoreOnto(StorageManager storage) → Future<void>
Replaces current storage with this snapshot's contents.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

capture() → Future<AppSessionSnapshot>
clearPersistentStorage(StorageManager storage) → Future<void>
Clears public, encrypted, and keychain values through one lifecycle primitive shared by snapshot restore and explicit storage reset.
runRestorePhases({required Future<void> clear(), required Future<void> rewrite()}) → Future<void>
Runs clear then rewrite, wrapping failures with a phase-named StateError.