isRightToLeft property

bool get isRightToLeft

Indicates whether the worksheet is displayed from right to left.FALSE by default

Workbook workbook = Workbook();
Worksheet sheet = workbook.worksheets[0];
workbook.isRightToLeft = true;
List<int> bytes = workbook.saveAsStream();
File('ExcelRTL.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

bool get isRightToLeft {
  return _isRightToLeft;
}
set isRightToLeft (bool value)

Implementation

set isRightToLeft(bool value) {
  for (int i = 0; i < _worksheets!.count; i++) {
    _worksheets![i].isRightToLeft = value;
  }
  _isRightToLeft = value;
}