TwoColumnDetailList class
A fluent builder for creating multiple two-column detail rows.
final details = TwoColumnDetailList()
.row('Name', 'John Doe')
.row('Email', 'john@example.com')
.row('Status', 'Active')
.leftStyle(Style().bold())
.render();
print(details);
- Inheritance
-
- Object
- Model
- ViewComponent
- StaticComponent
- DisplayComponent
- TwoColumnDetailList
- Available extensions
Constructors
- TwoColumnDetailList({RenderConfig renderConfig = const RenderConfig()})
- Creates a new empty two-column detail list builder.
Properties
Methods
-
fillChar(
String char) → TwoColumnDetailList - Sets the fill character (default: '.').
-
fillStyle(
Style style) → TwoColumnDetailList - Sets the fill character style.
-
indent(
int value) → TwoColumnDetailList - Sets the left indent (default: 2).
-
init(
) → Cmd? -
Returns an optional command to execute on program startup.
inherited
-
leftStyle(
Style style) → TwoColumnDetailList - 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
-
rightStyle(
Style style) → TwoColumnDetailList - Sets the right column style.
-
row(
String left, String right) → TwoColumnDetailList - Adds a row to the list.
-
rows(
Map< String, String> items) → TwoColumnDetailList - Adds multiple rows from a map.
-
styleFunc(
TwoColumnStyleFunc func) → TwoColumnDetailList - 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) → TwoColumnDetailList - Sets the total width for rows.
-
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