Frame class final

A consistent view into a terminal state for rendering a single frame.

Frames are typically acquired during a synchronous draw operation, and represent the state of the terminal at a single point in time for rendering widgets and controlling the cursor position.

Constructors

Frame(Buffer _buffer, [int count = 0])
Creates a new frame from the given buffer and count.

Properties

count int
Current frame count.
final
cursor Offset?
Cursor position within the frame.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Rect
Total size of the current frame.
no setter

Methods

draw(void render(Buffer), [Rect? bounds]) → void
Calls the given render function with a buffer for drawing.
next() Frame
Returns the next frame in the sequence.
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