renderContent method

void renderContent(
  1. RenderOutput out,
  2. void content(
    1. FrameContext ctx
    )
)

Renders without hints (for nested/partial renders).

Implementation

void renderContent(
  RenderOutput out,
  void Function(FrameContext ctx) content,
) {
  final frame = FramedLayout(title, theme: theme);
  final lb = LineBuilder(theme);
  final ctx = FrameContext._(out, lb, theme, frame);

  ctx.writeTop();

  if (showConnector && features.showBorders) {
    out.writeln(frame.connector());
  }

  content(ctx);

  if (features.showBorders) {
    out.writeln(frame.bottom());
  }
}