TwoColumnDetail class

A fluent builder for creating two-column detail rows.

Provides a chainable API for creating key-value style rows with customizable fill characters and styling.

final detail = TwoColumnDetail()
    .left('Status')
    .right('OK')
    .fillChar('.')
    .leftStyle(Style().bold())
    .rightStyle(Style().foreground(Colors.success))
    .render();

print(detail);
Inheritance
Available extensions

Constructors

TwoColumnDetail({RenderConfig renderConfig = const RenderConfig()})
Creates a new empty two-column detail builder.

Properties

hashCode int
The hash code for this object.
no setterinherited
lineCount int
Number of lines in render.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fillChar(String char) TwoColumnDetail
Sets the fill character (default: '.').
fillStyle(Style style) TwoColumnDetail
Sets the fill character style.
indent(int value) TwoColumnDetail
Sets the left indent (default: 2).
init() Cmd?
Returns an optional command to execute on program startup.
inherited
left(String text) TwoColumnDetail
Sets the left column text.
leftStyle(Style style) TwoColumnDetail
Sets the left column style.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render() String
Renders the component as a string.
override
Sets the right column text.
rightStyle(Style style) TwoColumnDetail
Sets the right column style.
styleFunc(TwoColumnStyleFunc func) TwoColumnDetail
Sets a style function for dynamic styling.
toString() String
A string representation of this object.
inherited
update(Msg msg) → (ViewComponent, Cmd?)
Updates the component state in response to a message.
inherited
view() String
Renders the current model state for display.
inherited
width(int value) TwoColumnDetail
Sets the total width for the row.
writelnTo(Console io) → void

Available on DisplayComponent, provided by the DisplayComponentExtension extension

Renders the component and writes it to the console.

Operators

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