ui/termui_debug library

Constants

kIsWeb → const bool
True if the current application is compiled to run on the web.

Properties

debugLogError ↔ void Function(String message)?
Optional override for error logging (e.g., in test environments).
getter/setter pair
debugMouseCursorEnabled ↔ bool
Render a crosshair over the current mouse position.
getter/setter pair
debugPaintHoverEnabled ↔ bool
Global configuration flags for visual debugging in termui. Highlight the deepest leaf node under the mouse pointer.
getter/setter pair
debugPaintLayerBordersEnabled ↔ bool
Paint borders around all active layers.
getter/setter pair
debugShowTouchesEnabled ↔ bool
Show active touches and expansion rings for visual debugging.
getter/setter pair
debugToggleKey ↔ KeyEvent?
Key sequence to toggle debug overlays globally (if null, hotkey is disabled). Defaults to Ctrl+O to avoid terminal multiplexer conflicts.
getter/setter pair
kIsDebug → bool
True if the application is running in debug mode. Evaluated exactly once at startup.
final

Functions

logError(String message) → void
Logs an error message. In release mode, this is a no-op. In debug mode, this writes to stderr natively, or uses print() on the web.