TR class

A table row representation for use in StaticTable, allowing custom styling and cell content.

This class encapsulates a row of TD cells with optional decoration, color, and style. It supports efficient rendering in Arcane UI components like Section or FillScreen, where tables can be embedded without unnecessary rebuilds due to its stateless nature. Use TR.header for column titles and TR.footer for summaries to maintain visual hierarchy.

Constructors

TR({required List<TD> column, Color? color, BoxDecoration? decoration, TRStyle style = TRStyle.normal})
Creates a normal table row with required cells.
const
TR.footer({required List<TD> column, Color? color, BoxDecoration? decoration})
Factory for footer rows, often for totals or summaries.
const
TR.header({required List<TD> column, Color? color, BoxDecoration? decoration})
Factory for header rows, typically used for column titles.
const
TR.normal({required List<TD> column, Color? color, BoxDecoration? decoration})
Factory explicitly for normal rows.
const

Properties

color Color?
final
column List<TD>
final
decoration BoxDecoration?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TRStyle
final

Methods

copyWith({BoxDecoration? decoration, Color? color, List<TD>? column, TRStyle? style}) TR
Creates a modified copy of this row.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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