Closed esingulten closed 4 months ago
Issue seems to be with
_archive.files.removeWhere((file) { return file.name.toLowerCase() == _xmlSheetId[sheet]?.toLowerCase(); });
_archive.files is an UnmodifiableListView
You cannot even rename it: you get the same error.
var defaultSheet = excel.getDefaultSheet() ?? "Sheet1";
excel.rename(defaultSheet, "NewSheetName");
Error: Unsupported operation: Cannot remove from an unmodifiable list
This is a bit strange
Duplicate of https://github.com/justkawal/excel/issues/309#issuecomment-1914475812
Have you searched the existing issues, before creating this one?
same issue here
Hello dear developer, in the previous version, sheet1 was automatically created, and I used to delete sheet1. Now it's automatically created again, but I can't delete it. I get the following error:
UnmodifiableListMixin.removeWhere (dart:_internal/list.dart:139:5) E/flutter (8393): #1 Excel.delete (package:excel/src/excel.dart:279:22)