style property
String
style
Implementation
String get style {
if (fgColor == null && bgColor == null && !bold) {
return '';
}
final _bgColor = bgColor;
final _fgColor = fgColor;
return <String>[
if (_bgColor != null) 'background-color: ${_colorToCss(_bgColor)}',
if (_fgColor != null) 'color: ${_colorToCss(_fgColor)}',
if (bold) 'font-weight: bold',
].join(';');
}