showRange method

void showRange(
  1. bool? isVisible
)

Shows or hides rows and columns in the given range. TRUE by default.

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
Range range = sheet.getRangeByName('A1:A2');
range.showRange(false);
List<int> bytes = workbook.saveAsStream();
File('Number.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

void showRange(bool? isVisible) {
  showRows(isVisible);
  showColumns(isVisible);
}