ansi_set_text_styles function

String ansi_set_text_styles({
  1. bool bold = false,
  2. bool underscore = false,
  3. bool blink = false,
  4. 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(),
      ],
    ),
  );
}