customItem method
void
customItem(})
Writes an item line with custom leading glyph.
Useful for tree structures, icons, or other custom prefixes.
Implementation
void customItem(
String content, {
required bool focused,
String? leadingGlyph,
bool highlighted = false,
}) {
final arrow = lb.arrow(focused);
final glyph = leadingGlyph != null ? '$leadingGlyph ' : '';
final line = '$arrow $glyph$content';
highlightedLine(line, highlighted: highlighted && focused);
}