green method

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

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

Implementation

AnsiPen green({bool bg = false, bool bold = false}) {
  switch ((bg, bold)) {
    case (true, true):
      styleStack.add(QuectoColors.bgGreenBright);
      break;
    case (true, false):
      styleStack.add(QuectoColors.bgGreen);
      break;
    case (false, true):
      styleStack.add(QuectoColors.greenBright);
      break;
    case (false, false):
      styleStack.add(QuectoColors.green);
      break;
  }
  return this;
}