toStyle property
Style
get
toStyle
Converts to an artisanal Style builder, excluding structure props.
Implementation
Style get toStyle {
var s = Style();
if (color != null) s = s.foreground(color!);
if (backgroundColor != null) s = s.background(backgroundColor!);
if (bold == true) s = s.bold();
if (italic == true) s = s.italic();
if (underline == true) s = s.underline();
if (blink == true) s = s.blink();
if (crossedOut == true) s = s.strikethrough();
if (faint == true) s = s.faint();
if (inverse == true) s = s.inverse();
return s;
}