DynamicTableDataRow class
Row configuration and cell data for a DynamicTable.
One row configuration must be provided for each row to
display in the table. The list of DynamicTableDataRow objects is passed
as the rows
argument to the DynamicTable.new constructor.
The data for this row of the table is provided in the cells property of the DynamicTableDataRow object.
Constructors
-
DynamicTableDataRow({required int index, bool selected = false, ValueChanged<
bool?> ? onSelectChanged, GestureLongPressCallback? onLongPress, MaterialStateProperty<Color?> ? color, bool isEditing = false, required List<DynamicTableDataCell> cells}) - Creates the configuration for a row of a DataTable.
Properties
-
cells
↔ List<
DynamicTableDataCell> -
The data for this row.
getter/setter pair
-
color
↔ MaterialStateProperty<
Color?> ? -
The color for the row.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
final
- isEditing ↔ bool
-
Whether the row is in editing mode.
getter/setter pair
- onLongPress → GestureLongPressCallback?
-
Called if the row is long-pressed.
final
-
onSelectChanged
→ ValueChanged<
bool?> ? -
Called when the user selects or unselects a selectable row.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected ↔ bool
-
Whether the row is selected.
getter/setter pair
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