render method
Implementation
@override
void render(Rect area, Buffer buffer, RenderContext ctx) {
if (area.isEmpty) return;
var inner = area;
if (border != null) {
final block = Block(
borderStyle: border,
title: title,
titleAlign: titleAlign,
borderColor: borderColor,
fill: fill,
);
block.render(area, buffer, ctx);
inner = block.inner(area);
} else if (fill != null) {
buffer.fillStyle(area, fill!);
}
inner = inner.inset(
top: padding.top,
right: padding.right,
bottom: padding.bottom,
left: padding.left,
);
if (child != null && !inner.isEmpty) {
ctx.draw(child!, inner);
}
}