render method
Renders the widget onto the provided buffer within the specified area.
Implementation
@override
void render(Buffer buffer, Rect area) {
if (area.width <= 0 || area.height <= 0) return;
final label = focused ? '[ $text ]' : ' $text ';
buffer.writeString(0, 0, label, focused ? focusedStyle : style);
}