TableCell class
Represents a single cell in a table.
Defines cell content, spanning behavior, and styling. Cells can span multiple columns or rows, respond to hover interactions, and have custom themes and background colors.
Example:
TableCell(
columnSpan: 2,
rowSpan: 1,
child: Text('Spanning cell'),
rowHover: true,
backgroundColor: Colors.blue.shade50,
)
Constructors
Properties
- backgroundColor → Color?
-
Background color for this cell. Overrides theme color.
final
- child → Widget
-
The widget displayed in this cell.
final
- columnHover → bool
-
Whether to highlight this cell when hovering over its column.
final
- columnSpan → int
-
Number of columns this cell spans. Defaults to 1.
final
- enabled → bool
-
Whether this cell responds to user interactions.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- rowHover → bool
-
Whether to highlight this cell when hovering over its row.
final
- rowSpan → int
-
Number of rows this cell spans. Defaults to 1.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → TableCellTheme?
-
Custom theme for this cell. Overrides table-level theme.
final
Methods
-
build(
BuildContext context) → Widget - Builds the widget tree for this table cell.
-
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.
override