AppContext class

Shared dependencies handed to every screen — the app's small service locator.

Constructors

AppContext({required OmnyShellService service, required AuthController auth, required NodesController nodes, required ThemeController theme, required TerminalDisplayController display, required AiSettingsController ai, required Router router, required SettingsStore settings, required KeyValueStore kv, required Toasts toasts, required Observable<String?> lastSession})
Creates a context.
const

Properties

ai AiSettingsController
AI agent preferences (Hub default vs custom provider/model/key).
final
auth AuthController
Authentication + session persistence.
final
display TerminalDisplayController
Terminal display preferences (dimensions + text size).
final
hashCode int
The hash code for this object.
no setterinherited
kv KeyValueStore
Raw key/value store (used by features needing their own namespace, e.g. per-session command history).
final
lastSession Observable<String?>
Short id of the most recently interacted-with session (clicked from a node's preview, resumed, peeked, or detached). The sessions list highlights this row so the last-touched session is easy to find. null when none.
final
nodes NodesController
Node discovery state.
final
router Router
Hash router.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service OmnyShellService
Facade over the OmnyShell client.
final
settings SettingsStore
Persisted settings.
final
theme ThemeController
Theme preference + application.
final
toasts Toasts
Transient notifications.
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