FakeTerminalSession class final

One terminal session as the fake server keeps it (docs/spec/24-terminal.md 6, 10; brief M4-36 Scope): metadata only, never content.

Constructors

FakeTerminalSession({required String id, required String hostId, required String userId, required String deviceId, required String loginSessionId, required String profile, required String openedAt})
Creates a session in opening.

Properties

closed → bool
Whether the session is closed.
no setter
closedAt ↔ String?
When the session ended, or null.
getter/setter pair
closeReason ↔ String?
The close_reason of a closed session.
getter/setter pair
detachedAt ↔ DateTime?
When the last stream of the device ended, or null while one is open.
getter/setter pair
detachedAtText ↔ String?
detachedAt as an API timestamp.
getter/setter pair
deviceId ↔ String
The device the session is bound to; an attach from another device moves it.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hostId → String
The host.
final
id → String
The session ID.
final
json → JsonMap
The API TerminalSession.
no setter
loginSessionId ↔ String
The login session (sid) of the last opening or attach, for the quick reattach of 24 6.2.
getter/setter pair
openedAt → String
When the session was opened (API timestamp).
final
profile → String
The profile name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startedAt ↔ String?
When the stream started first, or null.
getter/setter pair
state ↔ String
opening, active, detached or closed.
getter/setter pair
token ↔ String?
The current one-time session token; null once a stream used it.
getter/setter pair
userId → String
The person.
final
version ↔ int
The version.
getter/setter pair

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