builtInStyle property

BuiltInStyles? get builtInStyle

Represent the built-in-style of the range.

Implementation

BuiltInStyles? get builtInStyle {
  return _builtInStyle;
}
set builtInStyle (BuiltInStyles? value)

Set the built-in-style of the range.

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
Range range = sheet.getRangeByName('A1');
range.builtInStyle = BuiltInStyles.accent1;
List<int> bytes = workbook.saveAsStream();
File('BuiltInStyle.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

set builtInStyle(BuiltInStyles? value) {
  setBuiltInStyle(value);
}