backColor property

  1. @override
String get backColor
override

Gets/sets back color.

Implementation

@override

/// Gets/sets back color.
String get backColor => _backColor;
  1. @override
set backColor (String value)
override

Gets/sets back color.

final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
final Style style = workbook.styles.add('style');
// set back color.
style.backColor = '#37D8E9';
final Range range1 = sheet.getRangeByIndex(3, 4);
range1.number = 10;
range1.cellStyle = style;
final List<int> bytes = workbook.saveAsStream();
File('CellStyle.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

@override
set backColor(String value) {
  _backColor = value;
  _backColorRgb =
      Color(int.parse(_backColor.substring(1, 7), radix: 16) + 0xFF000000);
}