hint static method

String hint(
  1. String keyLabel,
  2. String action,
  3. PromptTheme theme
)

Combines a key label with its action (e.g. [Esc] Cancel).

Implementation

static String hint(String keyLabel, String action, PromptTheme theme) {
  return '${key(keyLabel, theme)} $action';
}