render method
Renders the open palette over baseView.
Implementation
String render(
String baseView, {
required int screenWidth,
required int screenHeight,
}) {
if (!isOpen) return baseView;
return renderModal(
baseView,
_body(),
chrome: ModalChrome(
title: title,
footer: footer,
width: width.clamp(4, screenWidth),
maxHeight: screenHeight,
),
screenW: screenWidth,
screenH: screenHeight,
);
}