draw method

  1. @override
void draw(
  1. Buffer buffer
)
override

Draws the widget on the buffer.

Implementation

@override
void draw(Buffer buffer) {
  final rect = Rect.fromLTWH(
    spacing.left,
    spacing.top,
    buffer.width - spacing.horizontal,
    buffer.height - spacing.vertical,
  );
  child.draw(buffer.subGrid(rect));
}