unfreezePanes method

void unfreezePanes()

Removes the existing freeze panes from the worksheet.

final Workbook workbook = Workbook();
final Worksheet worksheet = workbook.worksheets[0];
worksheet.getRangeByName('A1:H10').text = "Freeze panes";
worksheet.getRangeByName('B2').freezePanes();
worksheet.unfreezePanes();
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'UnfreezePanes.xlsx');
workbook.dispose();

Implementation

void unfreezePanes() {
  _horizontalSplit = 0;
  _verticalSplit = 0;
  _topLeftCell = '';
  _isfreezePane = false;
}