blue method

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

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

Implementation

AnsiPen blue({bool bg = false, bool bold = false}) {
  switch ((bg, bold)) {
    case (true, true):
      styleStack.add(QuectoColors.bgBlueBright);
      break;
    case (true, false):
      styleStack.add(QuectoColors.bgBlue);
      break;
    case (false, true):
      styleStack.add(QuectoColors.blueBright);
      break;
    case (false, false):
      styleStack.add(QuectoColors.blue);
      break;
  }
  return this;
}