magenta method

AnsiPen magenta({
  1. bool bg = false,
  2. bool bold = false,
})

Sets magenta foreground (or background with bg: true, bright with bold: true).

Implementation

AnsiPen magenta({bool bg = false, bool bold = false}) {
  switch ((bg, bold)) {
    case (true, true):
      styleStack.add(QuectoColors.bgMagentaBright);
      break;
    case (true, false):
      styleStack.add(QuectoColors.bgMagenta);
      break;
    case (false, true):
      styleStack.add(QuectoColors.magentaBright);
      break;
    case (false, false):
      styleStack.add(QuectoColors.magenta);
      break;
  }
  return this;
}