copyWith method
DataRow
copyWith({
- LocalKey? key,
- bool? selected,
- ValueChanged<
bool?> ? onSelectChanged, - MaterialStateProperty<
Color?> ? color, - List<
DataCell> ? cells,
Implementation
DataRow copyWith({
LocalKey? key,
bool? selected,
ValueChanged<bool?>? onSelectChanged,
MaterialStateProperty<Color?>? color,
List<DataCell>? cells,
}) {
return DataRow(
key: key ?? this.key,
selected: selected ?? this.selected,
onSelectChanged: onSelectChanged ?? this.onSelectChanged,
color: color ?? this.color,
cells: cells ?? this.cells,
);
}