titleWithBordersColored static method

String titleWithBordersColored(
  1. String title,
  2. PromptTheme theme,
  3. String color
)

Title with themed borders but custom color.

Implementation

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