white method

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

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

Implementation

AnsiPen white({bool bg = false, bool bold = false}) {
  switch ((bg, bold)) {
    case (true, true):
      styleStack.add(QuectoColors.bgWhiteBright);
      break;
    case (true, false):
      styleStack.add(QuectoColors.bgWhite);
      break;
    case (false, true):
      styleStack.add(QuectoColors.whiteBright);
      break;
    case (false, false):
      styleStack.add(QuectoColors.white);
      break;
  }
  return this;
}