HintFormat class

Centralized formatting helpers for keyboard hint blocks.

HintFormat keeps all pub.dev-facing hint renderings consistent by handling bullet separators, section dividers, and ANSI-safe column padding. Prefer these helpers instead of ad-hoc string building so new layouts and theme tweaks stay in sync across every prompt.

Constructors

HintFormat()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

bullets(List<String> segments, PromptTheme theme, {bool dim = false}) String
Builds the legacy single-line bullet list: ⌘K Jump • Enter Confirm.
comma(List<String> segments, PromptTheme theme) String
Builds a dim, parenthesized comma-separated hint string. Example: "(Enter to confirm, Esc to cancel)"
grid(List<List<String>> rows, PromptTheme theme) String
Produces a multi-column grid (two columns by default) with aligned keys.
hint(String keyLabel, String action, PromptTheme theme) String
Combines a key label with its action (e.g. [Esc] Cancel).
key(String label, PromptTheme theme) String
Wraps a keyboard label in square brackets with the proper accent color.
sections(Map<String, List<String>> groups, PromptTheme theme) String
Renders grouped sections such as "Navigation", "Editing", "Confirm".