buildDataRow method
Implementation
DataRow buildDataRow(T item) {
final isSelected = widget.selectedItems.contains(item);
final customRowColor = widget.rowColorBuilder?.call(item);
return DataRow(
selected: isSelected,
color: customRowColor != null ? WidgetStateProperty.all(customRowColor) : null,
cells: buildDataCells(item, isSelected),
onSelectChanged: hasSelectionFeature ? (selected) => widget.onSelectedItem?.call(item) : null,
);
}