bullets static method

String bullets(
  1. List<String> segments,
  2. PromptTheme theme, {
  3. bool dim = false,
})

Builds the legacy single-line bullet list: ⌘K Jump • Enter Confirm.

When dim is true the entire string is rendered with the theme's dim color which is ideal for inline overlays. Otherwise the standard accent gray is used to keep hints visually distinct from content.

Implementation

static String bullets(
  List<String> segments,
  PromptTheme theme, {
  bool dim = false,
}) {
  final color = dim ? theme.dim : theme.gray;
  return '$color${segments.join(' • ')}${theme.reset}';
}