DataRow.byIndex constructor

DataRow.byIndex({int index, bool selected: false, ValueChanged<bool> onSelectChanged, @required List<DataCell> cells })

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

The cells argument must not be null.

Implementation

DataRow.byIndex({
  int index,
  this.selected = false,
  this.onSelectChanged,
  @required this.cells,
}) : assert(cells != null),
     key = ValueKey<int>(index);