TerminalContextSnapshot class

A restorable snapshot of TerminalContext's terminal slot.

Snapshots record whether the context had an initialized terminal at capture time. Restoring a snapshot captured before TerminalContext.current was first accessed resets the context back to the same uninitialized state.

Properties

hadInitializedTerminal → bool
Whether TerminalContext held an initialized terminal at capture time.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
terminal → Terminal?
The terminal that was active at capture time, or null if uninitialized.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restore() → void
Restores the captured terminal context.
toString() → String
A string representation of this object.
inherited

Operators

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