DataRow.byIndex constructor

DataRow.byIndex({
  1. int? index,
  2. bool selected = false,
  3. ValueChanged<bool?>? onSelectChanged,
  4. GestureLongPressCallback? onLongPress,
  5. MaterialStateProperty<Color?>? color,
  6. MaterialStateProperty<MouseCursor?>? mouseCursor,
  7. required List<DataCell> cells,
})

Creates the configuration for a row of a DataTable, deriving the key from a row index.

Implementation

DataRow.byIndex({
  int? index,
  this.selected = false,
  this.onSelectChanged,
  this.onLongPress,
  this.color,
  this.mouseCursor,
  required this.cells,
}) : key = ValueKey<int?>(index);