WizardRenderer class
Renderer responsible for terminal output formatting, prompt printing, and summary screens.
Constructors
- WizardRenderer({WizardTheme? theme, StringSink? output, LineReader? inputReader})
- Creates a WizardRenderer instance.
- WizardRenderer.fromTerminal(TerminalUtils terminal, {StringSink? output, LineReader? inputReader})
-
Creates a WizardRenderer configured from TerminalUtils.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputReader → LineReader
-
Line reader function (defaults to standard input reader).
final
- output → StringSink
-
Output sink (defaults to stdout).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → WizardTheme
-
Theme styling definitions.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
renderError(
String message) → void - Renders error feedback message.
-
renderHeader(
) → void - Renders wizard ASCII header.
-
renderQuestion(
WizardQuestion question, dynamic initialValue) → dynamic - Prompts for input for a given question and returns parsed value or null on back command.
-
renderStepHeader(
WizardStep step, int stepNumber, int totalSteps) → void - Renders step header with counter.
-
renderSuccess(
String message) → void - Renders success confirmation message.
-
renderSummaryAndConfirm(
WizardContext context) → bool - Renders final project summary and confirmation page. Returns true if user confirms generation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited