removeRow method
void
removeRow(
- TResultId itemId
Removes the row containing an element whose id is itemId
Implementation
void removeRow(TResultId itemId) {
final rowIndex = _state._rowsStateMapper[itemId];
if (rowIndex == null) {
throw TableError(
'Item with key "$itemId" is not in the current dataset.');
}
_state._rowsState.removeAt(rowIndex);
_state._items.removeAt(rowIndex);
_state._rowsStateMapper.remove(itemId);
_state._rowsChange = rowIndex;
// ignore: invalid_use_of_visible_for_testing_member
_state.notifyListeners();
}