EmptyDrawable class final
A no-op drawable with a fixed size.
Useful as a safe fallback when a terminal does not support any image protocol: the renderer won't emit unknown escape sequences.
- Implemented types
Constructors
- EmptyDrawable({int width = 0, int height = 0})
-
Creates a drawable that occupies
widthbyheightcells.const
Properties
Methods
-
bounds(
) → Rectangle -
Returns the bounds of this empty drawable.
override
-
draw(
Screen screen, Rectangle area) → void -
Draws nothing.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited