bottomLine static method

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

Implementation

static String bottomLine(String title, PromptTheme theme) {
  final g = theme.glyphs;
  // Match the visual width of the top line, but without a closing corner.
  // Top width = title.length + 6 (includes both corners and spacing/dashes).
  // Bottom: left corner + dashes => 1 + (title.length + 5) = title.length + 6
  return '${theme.gray}${g.borderBottom}${g.borderHorizontal * (title.length + 5)}${theme.reset}';
}