OmegaAppSnapshot class

Snapshot of app state: active flow plus snapshots of all flows. For persistence or debugging.

Example: final snap = flowManager.getAppSnapshot(); await storage.save(jsonEncode(snap.toJson()));

Constructors

OmegaAppSnapshot({String? activeFlowId, required List<OmegaFlowSnapshot> flows})
const

Properties

activeFlowId String?
Id of the main flow.
final
flows List<OmegaFlowSnapshot>
Snapshots of each registered flow.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
JSON map for saving. Restore with fromJson and OmegaFlowManager.restoreFromSnapshot.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) OmegaAppSnapshot
Creates snapshot from map (jsonDecode). Then flowManager.restoreFromSnapshot(snapshot).