TableModel class
A model representing the data and appearance of a table cell.
Constructors
- TableModel.new({String? data, int flex = 1, bool expanded = true, Widget? child, TextStyle? textStyle, Color? color})
- Creates a TableModel instance.
Properties
- child → Widget?
-
A custom widget to be displayed in the cell. If provided, it overrides the data.
final
- color → Color?
-
The background color of the cell.
final
- data → String?
-
The text data to be displayed in the cell.
final
- expanded → bool
-
Whether the cell should expand to fill the available space.
final
- flex → int
-
The flex factor for the cell. Determines the amount of space the cell will take relative to others.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
The text style to be applied to the cell's text.
final
Methods
-
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