AppBinding class

The concrete binding that combines all mixin bindings into a single initialized instance.

Inheritance
Mixed-in types

Constructors

AppBinding([TerminalBackend? terminalBackend])
Creates an AppBinding with an optional terminalBackend.

Properties

hashCode int
The hash code for this object.
no setterinherited
keyboard RawKeyboard
The keyboard backend used to read raw key events.
final
outputBuffer OutputBuffer
The output buffer used by the rendering pipeline.
latefinaloverride-getter
rootElement Element?
The root element of the widget tree, or null if no app is running.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminal Terminal
The terminal interface for screen operations.
no setteroverride

Methods

addOverlay(Widget overlay) → void
Adds an overlay widget on top of the current widget tree.
inherited
addPersistentFrameCallback(FrameCallback callback) → void
Registers a callback that is invoked on every frame.
inherited
addPostFrameCallback(FrameCallback callback) → void
Registers a callback that is invoked once at the end of the next frame.
inherited
addShutdownCallback(ShutdownCallback callback) → void
Registers a callback to be invoked during shutdown.
inherited
attachRootWidget(Widget app) → void
Attaches the given app as the root widget without starting signal handlers.
inherited
disposeServices() → void
Disposes the keyboard and other platform services.
inherited
handleFrame() → void
Called once per frame to dispatch persistent and post-frame callbacks.
inherited
initializeServices() → void
Initializes the keyboard and other platform services.
inherited
initInstances() → void
Called during construction to initialize binding singletons.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintElement(Element element) → void
Paints the render object belonging to element into the output buffer.
inherited
removeOverlay(Widget overlay) → void
Removes a previously added overlay widget.
inherited
removePersistentFrameCallback(FrameCallback callback) → void
Removes a previously registered persistent frame callback.
inherited
removeShutdownCallback(ShutdownCallback callback) → void
Removes a previously registered shutdown callback.
inherited
renderFrame() → void
Performs a single build-layout-paint cycle for the root element.
inherited
runApp(Widget app) → void
Boots the given app widget, handles signals, and starts rendering.
inherited
scheduleFrame() → void
Schedules a frame to be processed as a microtask.
inherited
scheduleFrameWithClear() → void
Schedules a new frame after clearing the entire output buffer.
inherited
shutdown() → void
Gracefully shuts down the application, running all registered shutdown callbacks and restoring the terminal state.
inherited
toString() String
A string representation of this object.
inherited
visibleCursor(bool visible) → void
Shows or hides the terminal cursor.
inherited

Operators

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

Static Methods

ensureInitialized() WidgetsBinding
Ensures the binding is initialized and returns the WidgetsBinding.