TestBinding class
- Inheritance
-
- Object
- BindingBase
- TestBinding
- Mixed-in types
Constructors
- TestBinding({int width = 80, int height = 24})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyboard → TestKeyboard
-
The keyboard backend for reading user input.
final
- outputBuffer ↔ TestOutputBuffer
-
The output buffer that render objects paint into.
latefinaloverride-getter
- rootElement → Element?
-
The root element of the widget tree, or
nullif no app is running.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- terminal → TestTerminal
-
The terminal interface for screen operations.
final
Methods
-
addOverlay(
Widget overlay) → void -
Adds an
overlaywidget on top of the current widget tree.inherited -
addPersistentFrameCallback(
FrameCallback callback) → void -
Registers a
callbackthat is invoked on every frame.inherited -
addPostFrameCallback(
FrameCallback callback) → void -
Registers a
callbackthat is invoked once at the end of the next frame.inherited -
addShutdownCallback(
ShutdownCallback callback) → void -
Registers a
callbackto be invoked during shutdown.inherited -
attachRootWidget(
Widget app) → void -
Attaches the given
appas 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.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paintElement(
Element element) → void -
Paints the render object belonging to
elementinto the output buffer.inherited -
pump(
[Duration? duration]) → Future< void> -
pumpAndSettle(
) → Future< void> -
removeOverlay(
Widget overlay) → void -
Removes a previously added
overlaywidget.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
appwidget, handles signals, and starts rendering.inherited -
runWidget(
Widget widget) → void -
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
-
unmount(
) → void -
visibleCursor(
bool visible) → void -
Shows or hides the terminal cursor.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → TestBinding
-
no setter
- maybeInstance → TestBinding?
-
no setter