TurnContext class

Per-turn context handed to the handler passed to SessionRunner.run.

The snapshotId is reserved at turn start (before the handler runs) and is the id the snapshot persisted at turn end will reuse.

Constructors

TurnContext({required String snapshotId, String? parentSnapshotId, required int turnIndex})

Properties

hashCode int
The hash code for this object.
no setterinherited
parentSnapshotId String?
The id of the parent snapshot this turn continues from, or null on the first turn of a fresh session.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshotId String
The id the snapshot produced by this turn will be saved under.
final
turnIndex int
Zero-based index of this turn within the current invocation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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