TerminalThemeState class final
Tracks terminal-reported colors and background truth.
This is a lightweight helper that apps/components can keep in their model to avoid re-implementing background color parsing and dark-mode heuristics.
Constructors
- TerminalThemeState({String? backgroundHex, String? foregroundHex, String? cursorHex, bool? hasDarkBackground})
-
const
Properties
- backgroundHex → String?
-
Terminal-reported background color in hex form (e.g.
#0a0a0a).final - cursorHex → String?
-
Terminal-reported cursor color in hex form.
final
- foregroundHex → String?
-
Terminal-reported foreground color in hex form.
final
- hasDarkBackground → bool?
-
Whether the background is considered "dark".
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
mergePalette(
TerminalPaletteSnapshot snapshot) → TerminalThemeState -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Msg msg) → TerminalThemeState
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited