ansi_set_text_styles function
String
ansi_set_text_styles(
{ - bool bold = false,
- bool underscore = false,
- bool blink = false,
- bool inverted = false,
})
Implementation
String ansi_set_text_styles({
final bool bold = false,
final bool underscore = false,
final bool blink = false,
final bool inverted = false,
}) {
return _ansi_select_graphics_rendition(
CompositeGraphicsRenditionNode(
[
if (bold) const GraphicsRenditionNodeHighlightImpl(),
if (underscore) const GraphicsRenditionNodeUnderlineImpl(),
if (blink) const GraphicsRenditionNodeBlinkImpl(),
if (inverted) const GraphicsRenditionNodeInvertedImpl(),
],
),
);
}