Material DataRow Widget Tutorial
Row configuration and cell data for a DataTable.
DataRow Constructors
-
DataRow({LocalKey? key, bool selected, ValueChanged<bool?>? onSelectChanged, MaterialStateProperty<Color?>? color, required List<DataCell> cells}): Creates the configuration for a row of a DataTable.
-
DataRow.byIndex({int? index, bool selected, ValueChanged<bool?>? onSelectChanged, MaterialStateProperty<Color?>? color, required List<DataCell> cells}): Creates the configuration for a row of a DataTable, deriving the key from a row index.
DataRow Properties
-
cells: The data for this row using DataCell.
-
color: The color for the row.
-
onSelectChanged: Called when the user selects or unselects a selectable row.
-
selected: Whether the row is selected.
References