render method
Implementation
@override
void render(Terminal terminal) {
if (!terminal.bounds.contains(panel.bounds)) {
// need to re-size the panel
panel.bounds = terminal.bounds;
}
var panelTerm = terminal
.childRect(terminal.bounds.centerRect(panel.width, panel.height));
panel.render(panelTerm);
}