deleteRow method
Implementation
void deleteRow(int index) {
if (index < 0 || index > data.length) {
throw Exception('Index out of bounds');
}
_selectedCount -= data[index].selected ? 1 : 0;
data.removeAt(index);
_disposeInputAt(index);
_shiftValues(index, -1);
notifyListeners();
}