CellStyle constructor
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,
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;
}