TerminalThemeState class final

Tracks terminal theme information (background + dark/light heuristic).

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, bool? hasDarkBackground})
const

Properties

backgroundHex String?
Terminal-reported background color in hex form (e.g. #0a0a0a).
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

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