comma static method

String comma(
  1. List<String> segments,
  2. PromptTheme theme
)

Builds a dim, parenthesized comma-separated hint string. Example: "(Enter to confirm, Esc to cancel)"

Implementation

static String comma(List<String> segments, PromptTheme theme) {
  return '${theme.dim}(${segments.join(', ')})${theme.reset}';
}