DataRow constructor Null safety
- {LocalKey? key,
- bool selected = false,
- ValueChanged<
bool?> ? onSelectChanged, - GestureLongPressCallback? onLongPress,
- MaterialStateProperty<
Color?> ? color, - required List<
DataCell> cells}
Creates the configuration for a row of a DataTable.
The cells argument must not be null.
Implementation
const DataRow({
this.key,
this.selected = false,
this.onSelectChanged,
this.onLongPress,
this.color,
required this.cells,
}) : assert(cells != null);