DataRow.byIndex constructor
- int? index,
- bool selected = false,
- ValueChanged<
bool?> ? onSelectChanged, - GestureLongPressCallback? onLongPress,
- MaterialStateProperty<
Color?> ? color, - MaterialStateProperty<
MouseCursor?> ? mouseCursor, - 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);