Screen<T> class

Constructors

Screen()

Properties

hashCode int
The hash code for this object.
no setterinherited
isBound bool
Whether this screen is bound to a UserInterface.
no setter
isTransparent bool
Whether this screen allows any screens under it to be visible.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ui UserInterface<T>
The UserInterface this screen is bound to.
no setter

Methods

activate(Screen<T> popped, Object? result) → void
Called when the screen above this one (popped) has been popped and this screen is now the top-most screen. If a value was passed to pop(), it will be passed to this as result.
dirty() → void
Marks the user interface as needing to be rendered.
handleInput(T input) bool
If a keypress has a binding defined for it and is pressed, this will be called with the bound input when this screen is active.
keyDown(int keyCode, {required bool shift, required bool alt}) bool
keyUp(int keyCode, {required bool shift, required bool alt}) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Terminal terminal) → void
resize(Vec size) → void
Called when the UserInterface has been bound to a new terminal with a different size while this Screen is present.
toString() String
A string representation of this object.
inherited
update() → void

Operators

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