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

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether there are no overrides.
no setter
names Iterable<String>
The overridden prompt names (canonical).
no setter
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
resolve(String name, String fallback) String
The override text for name, or fallback when 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 when name is not overridden.

Constants

empty → const PromptOverrides
No overrides — every resolve returns its fallback.