draw abstract method

Future<void> draw(
  1. void render(
    1. Frame
    )
)

Synchronizes terminal size, calls render, and flushes the frame.

This is the main entry point for drawing to the terminal.

Implementation

Future<void> draw(void Function(Frame) render);