PromptOverrides class final
Resolved prompt overrides: canonical prompt name → override text.
Produced from the validated raw map by resolvePromptOverrides (see
src/cli/prompt_overrides_io.dart) or constructed directly in tests.
Consumption points call resolve with the built-in prompt as the
fallback, so PromptOverrides.empty reproduces the built-in behavior
byte-for-byte.
Constructors
-
PromptOverrides(Map<
String, String> _texts) -
Creates resolved overrides from a canonical name → text map.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
String name, String fallback) → String -
The override text for
name, orfallbackwhen not overridden. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String name) → String? -
The override text for
name, or null whennameis not overridden.
Constants
- empty → const PromptOverrides
- No overrides — every resolve returns its fallback.