setTextStyle method

void setTextStyle({
  1. bool bold = false,
  2. bool faint = false,
  3. bool italic = false,
  4. bool underscore = false,
  5. bool blink = false,
  6. bool inverted = false,
  7. bool invisible = false,
  8. bool strikethru = false,
})
inherited

Sets the text style.

Note that not all styles may be supported by all terminals.

Implementation

void setTextStyle({
  bool bold = false,
  bool faint = false,
  bool italic = false,
  bool underscore = false,
  bool blink = false,
  bool inverted = false,
  bool invisible = false,
  bool strikethru = false,
}) {
  stdout.write(
    ansiSetTextStyles(
      bold: bold,
      faint: faint,
      italic: italic,
      underscore: underscore,
      blink: blink,
      inverted: inverted,
      invisible: invisible,
      strikethru: strikethru,
    ),
  );
}