TopState class

Central state for ScloudTopApp rendered by nocterm.

Constructors

TopState({required String baseCommand, required String projectId, required TopSnapshot snapshot, required bool utc, required Duration interval})

Properties

activeOperations → Map<String, TrackedOperation>
Currently active tracked operations (keyed by ID).
final
alert ↔ AlertMessage?
Alert pinned in the log panel until dismissed with Escape or replaced by a newer alert. Rendered by the consumer via AlertLine.
getter/setter pairinherited
alertCopied ↔ bool
True briefly after the alert's segment is copied, so AlertLine can show a ✓ Copied confirmation in place of the C Copy hint.
getter/setter pairinherited
alertTime ↔ DateTime?
When alert was raised, shown alongside it. Null when unknown.
getter/setter pairinherited
baseCommand → String
final
ctrlCHint ↔ String?
Transient message shown at the bottom of the screen, e.g. "Copied to clipboard" after a copy or "Press Ctrl-C again to exit" while exit is armed. Null when nothing should be shown.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
interval → Duration
How often the status refreshes.
final
logHistory → BoundedQueueList<Object>
Log history entries: LogEntry (from serverpod_logging) or CompletedOperation.
final
projectId → String
final
rawLines → BoundedQueueList<String>
Raw stdout/stderr lines for the "Raw server output" tab.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedText ↔ String
The text currently highlighted in a log view, or empty when there is no selection. Updated as the user drags a selection and read when Ctrl-C is pressed so the selection can be copied to the clipboard.
getter/setter pairinherited
snapshot ↔ TopSnapshot
getter/setter pair
utc → bool
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