GameSessionTimelineEntry class

ENH-96: one recorded phase transition in a GameSessionController's timeline — offsetMs is elapsed time since the session's own Stopwatch started (see GameSessionController.withTimeline's doc), never a wall-clock timestamp, so a recorded/exported timeline never leaks when (in real-world time) a session was played, only its internal pacing — same anti-fingerprinting posture ReplayRecorder already documents for its own offsets.

Constructors

GameSessionTimelineEntry({required int offsetMs, required GameSessionPhase phase, Set<GamePauseReason> pauseReasons = const {}, Map<String, Object?> metadata = const {}})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, Object?>
Already-sanitized (allowlisted + PII-blacklist-filtered) outcome metadata — see GameSessionController.winWithMetadata's doc for the filtering rule. Empty for every non-terminal entry.
final
offsetMs → int
final
pauseReasons → Set<GamePauseReason>
final
phase → GameSessionPhase
final
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, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → GameSessionTimelineEntry