titleWithBorders static method

String titleWithBorders(
  1. String title,
  2. PromptTheme theme
)

Properly balanced title: ╭─ Title ─╮

Implementation

static String titleWithBorders(String title, PromptTheme theme) {
  final g = theme.glyphs;
  return '${theme.selection}${g.borderTop}${g.borderHorizontal} $title ${g.borderHorizontal}${g.matchingCorner(g.borderTop)}${theme.reset}';
}