CellStyle constructor

CellStyle({
  1. String fontColorHex = 'FF000000',
  2. String backgroundColorHex = 'none',
  3. int? fontSize,
  4. String? fontFamily,
  5. HorizontalAlign horizontalAlign = HorizontalAlign.Left,
  6. VerticalAlign verticalAlign = VerticalAlign.Bottom,
  7. TextWrapping? textWrapping,
  8. bool bold = false,
  9. Underline underline = Underline.None,
  10. bool italic = false,
  11. int rotation = 0,
})

Implementation

CellStyle({
  String fontColorHex = 'FF000000',
  String backgroundColorHex = 'none',
  int? fontSize,
  String? fontFamily,
  HorizontalAlign horizontalAlign = HorizontalAlign.Left,
  VerticalAlign verticalAlign = VerticalAlign.Bottom,
  TextWrapping? textWrapping,
  bool bold = false,
  Underline underline = Underline.None,
  bool italic = false,
  int rotation = 0,
}) {
  _textWrapping = textWrapping;

  _bold = bold;

  _fontSize = fontSize;

  _italic = italic;

  _fontFamily = fontFamily;

  _rotation = rotation;

  _fontColorHex = _isColorAppropriate(fontColorHex);

  _backgroundColorHex = _isColorAppropriate(backgroundColorHex);

  _verticalAlign = verticalAlign;

  _horizontalAlign = horizontalAlign;
}