diff --git a/lib/src/sheet/sheet.dart b/lib/src/sheet/sheet.dart index 389b123c..dd81ae09 100644 --- a/lib/src/sheet/sheet.dart +++ b/lib/src/sheet/sheet.dart @@ -560,12 +560,8 @@ class Sheet { if (rowKey < rowIndex && _sheetData[rowKey] != null) { _data[rowKey] = Map.from(_sheetData[rowKey]!); } - if (rowIndex == rowKey && _sheetData[rowKey] != null) { - _sheetData.remove(rowKey); - } if (rowIndex < rowKey && _sheetData[rowKey] != null) { _data[rowKey - 1] = Map.from(_sheetData[rowKey]!); - _sheetData.remove(rowKey); } }); _sheetData = Map>.from(_data);