render method
Renders the component as a styled string.
Subclasses implement this to produce their ANSI-styled output.
Implementation
@override
String render() {
final totalWidth = width ?? renderConfig.terminalWidth;
final keyLen = Style.visibleLength(key);
final valueLen = Style.visibleLength(value);
final fillLen = totalWidth - keyLen - valueLen - 2;
final fill = fillLen > 0 ? ' ${fillChar * fillLen} ' : ' ';
return '$key$fill$value';
}