TuiBinding class final

Owns the app lifecycle graph for an OpenTUI widget tree.

Constructors

TuiBinding({int width = 80, int height = 24, bool headless = false, InputManager? inputManager, Renderer? renderer})
Builds the lifecycle graph; an injected renderer remains borrowed, including when this advanced binding is headless.

Properties

buildOwner BuildOwner
The BuildOwner driving widget build/layout/paint for this binding.
no setter
debugFrameCount int
Frames this binding has painted and rendered since construction.
no setter
debugHasScheduledFrame bool
Whether the scheduler has a pending frame in integration tests.
no setter
hashCode int
The hash code for this object.
no setterinherited
inputManager InputManager
The input manager used by this binding.
no setter
isHeadless bool
Whether this binding runs without an owned terminal renderer.
no setter
renderer Renderer?
The renderer used by this binding, if one exists.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debugFlushFrame([Duration timestamp = Duration.zero]) → void
Flush one frame synchronously in integration tests.
disableKittyKeyboard() → void
Disable Kitty keyboard reporting through the terminal renderer.
disableMouse() → void
Disable mouse reporting through the terminal renderer.
dispose() → void
Dispose this binding and every owned lifecycle object.
enableKittyKeyboard({int flags = KittyFlags.disambiguateEscapeCodes}) → void
Enable Kitty keyboard reporting through the terminal renderer.
enableMouse({bool enableMovement = true}) → void
Enable mouse reporting through the terminal renderer.
handleResize(int width, int height) → void
Resize the renderer and schedule a frame if dimensions changed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
Rebuild the mounted tree and force a full layout and paint pass.
runApp(Widget app) → void
Mount app as this binding's root widget and schedule the first frame.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited