text property

String? get text

Represent the Text of the Range

Implementation

String? get text {
  if (isSingleRange) {
    return _text;
  } else {
    return getText();
  }
}
set text (String? value)

Sets the text of the range.

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
Range range = sheet.getRangeByName('A1');
range.text = 'Hello World';
List<int> bytes = workbook.saveAsStream();
File('Text.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

set text(String? value) {
  setText(value);
}