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 width by height cells.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
final

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