Session class
A conversational session containing state and event history.
Constructors
Properties
- appName ↔ String
-
Application name associated with this session.
getter/setter pair
-
events
↔ List<
Event> -
Chronological event history for this session.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
Unique session identifier.
getter/setter pair
- lastUpdateTime ↔ double
-
Timestamp of the last update in seconds since epoch.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
↔ Map<
String, Object?> -
Session-scoped state map, including prefixed app and user entries.
getter/setter pair
- storageUpdateMarker ↔ String?
-
Exact storage revision marker used for stale-writer detection.
getter/setter pair
- userId ↔ String
-
User identifier associated with this session.
getter/setter pair
Methods
-
copyWith(
{String? id, String? appName, String? userId, Map< String, Object?> ? state, List<Event> ? events, double? lastUpdateTime, Object? storageUpdateMarker = _sessionSentinel}) → Session - Returns a deep-copied session with optional field overrides.
-
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